Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi All,
I am able to create a new user through apex but the user is not receiving an password confirmation email.Any thoughts?
Thanks
Try The below code, works for me.
Database.DMLOptions dlo = new Database.DMLOptions();dlo.EmailHeader.triggerUserEmail = true;dlo.EmailHeader.triggerAutoResponseEmail= true;
user.setOptions(dlo);insert user;
Hi,
Recheck the email id mentioned which you have used while creating.
Thanks,
Babu.
i have to manually check this checkbox........ Generate new password and notify user immediately ....... for the user to receive an email.I want to automate it.
Thanks Tej.
Try The below code, works for me.
Database.DMLOptions dlo = new Database.DMLOptions();
dlo.EmailHeader.triggerUserEmail = true;
dlo.EmailHeader.triggerAutoResponseEmail= true;
user.setOptions(dlo);
insert user;
All Answers
Hi,
Recheck the email id mentioned which you have used while creating.
Thanks,
Babu.
i have to manually check this checkbox........ Generate new password and notify user immediately ....... for the user to receive an email.I want to automate it.
Try The below code, works for me.
Database.DMLOptions dlo = new Database.DMLOptions();
dlo.EmailHeader.triggerUserEmail = true;
dlo.EmailHeader.triggerAutoResponseEmail= true;
user.setOptions(dlo);
insert user;
Thanks Tej.