+ Start a Discussion
DTCFDTCF 

New Customer Portal User email notifications stopped working in dev org

Hello,

 

Any reason why this would be the case? Could this be related to a weird dev org limitation? It was working fine with this code inserting a new user:

 

 

	dmo.EmailHeader.triggerUserEmail = true;
		
    	User u = new User(alias = 'newu', email=email, 
            emailencodingkey='UTF-8', lastname=lastname, languagelocalekey='en_US', 
            localesidkey='en_US', profileid = profileId, contactId=contactId, 
            timezonesidkey='America/Los_Angeles', username=username);
        
        u.setOptions(dmo);
        insert u;

 

 

Now, the user is created correctly with the correct email address, but the triggerUserEmail is never sent. If I go into the user and hit the "Reset Password" button, everything works fine as if the user received the email automatically.

 

I'd appreciate if anyone has any thoughts as to why this might be happening. Thanks!

Chirag MehtaChirag Mehta

Were you able to find the reason behind email notification not being delivered?