+ Start a Discussion
binu rajbinu raj 

Users not getting Reset password notifications

Hi Team,

I logged in as sales force user through Java API client.Then I add sales force users from my application.The problem is
users didn't get any notification about reset password.My code for adding user is,

   SObject user = new SObject();
            user.setField("LastName", "testuser");
            user.setField("Alias", "testuser");
            user.setField("CommunityNickname", "Test");
            user.setField("TimeZoneSidKey", "America/Chicago");
            user.setField("LocaleSidKey", "en_US");
            user.setField("LanguageLocaleKey", "es");
            user.setField("EmailEncodingKey", "ISO-8859-1");
            user.setField("ProfileId", "00e90000000EqsdAAC");
            user.setField("UserPermissionsMarketingUser", "true");
            user.setField("UserPermissionsOfflineUser", "true");
            user.setField("ReceivesAdminInfoEmails", "true");
            user.setField("ReceivesInfoEmails", "true");           
  SaveResult[] results = connection.create(new SObject[] { user });
Let me know what is the problem inside this code?But the notification is working when I add that user manually through my salesforce.com account.
Vatsal KothariVatsal Kothari

Check the Email Deliverability (Setup --> Administration Setup --> Email Administration --> Deliverability )
Check Access Email dropdown list and select All Email & Save.

If this solves your problem, kindly mark it as the best answer.

binu rajbinu raj

This is not my problem.Actually I am admin in SFDC.The Deliverability Drodown value is All for me.The problem happening to my users.If I am adding a user from my java application the notification not send.After adding  I can see that user in my SFDC users.But that user's "Generate new password and notify user immediately" check box is not selected.This will be select when the user adding process through SFDC. If I select that user and click Reset password button the notification send to that user's email.This process is not working from java client. Let me know what will be the problem?
Gaurav NirwalGaurav Nirwal
Please check the email access management then setup the email administration 
Gaurav NirwalGaurav Nirwal
your problem can solved please mark as best answer