You need to sign in to do that
Don't have an account?
Autobat
DMLOption for New User not sending password email in @future
Hey Guys,
I have tried the two different options available for setting the DML trigger user email option and still no email is being sent to the new user. If i open the edit screen the 'Generate New Password and Notify User immediately' is still available. Any ideas?
Approach 1
Database.DMLOptions dmo = new Database.DMLOptions(); dmo.EmailHeader.triggerUserEmail = true; theUser.SetOptions(dmo); database.insert(theUser);
Approach 2
Database.DMLOptions dmo = new Database.DMLOptions(); dmo.EmailHeader.triggerUserEmail = true; database.insert(theUser, dml);
But in one org it is not working another org the mail is sending perfectly.
Thanks.