function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
earlino727earlino727 

Can we add a custom profile ,having a Guest License, to Organization Wide Email Address


Hi ,

In order for us to be able to send email notifications to a user who uses are site we need to add a custom profile to the Organization Wide Email Address so that when a user enters their contact info into our site, they will get an email notification with the  Sender email address equal to something like : "noreply@someplce.org". Currently it is using a developer's email address instead. We'd like to change that:

Q) Is there a way that we can add a custom profile (Guest License) to org Wide Email Address so that we can set  that Sender email adddress to noreply@someplace.org'?

Currently we get the error message:
SendEmail failed caused by: System.EmailException: SendEmail failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_OR_READONLY, Not profiled to access this Org-wide Email.


 Thanks
Best Answer chosen by earlino727
earlino727earlino727
HI HI @Sonam_SFDC , Hi @Vinita_SFDC I believe I have fixed the problem:

I had to go to the user page for Homeschool Site Guesr User  user record and then I edited the Email Address and changed the previous value  (which was an employee email address) to 'noreply@someaddress.com' . I then reran a test on the Sandbox Force.com Site page form and submitted the user information on that page form.   The controller for the site then sends the user an email notification and I verified that the Sender or From email was 'noreply@someaddress.com' .  So I never really had to use Org Wide Email Address at all. I just had to make sure that the Site Guest User Email was set to 'noreply@someaddress.com' and had the controller code setup the email using Subject, SenderDIsplayName,Replyto, and the BCC headers before sending the email.

I am still using Portal users but this should be the last project in using Protals for us.

Thanks for your help. USing your ideas I was able to think about that User Record and changing that email address.

All Answers

Vinita_SFDCVinita_SFDC
Hello,

Yes this is possible by checking option "Allow All Profiles to Use this From Address" while defining Organization-Wide Email Address.
Sonam_SFDCSonam_SFDC
You can go back to Setup > Administer > Email Administration > Organization-Wide Addresses > Edit the ORG wide adress and selct this Custom Profile and add it to the list which has access to use this particular ORG WIde email address : noreply@someplace.org'


earlino727earlino727

HI @Sonam_SFDC , Hi @Vinita_SFDC

  I just tried that and the custom profile called  "Homeschool Profile"  does not show up in the list of  custom profiles for Organization WIde Email Addresses because it is a Guest License and not a Salesforce License type.   Is it possible that I have to change the Profile License type from  Guest License to Salesforce License for this external user ?  Thanks.
earlino727earlino727
HI HI @Sonam_SFDC , Hi @Vinita_SFDC I believe I have fixed the problem:

I had to go to the user page for Homeschool Site Guesr User  user record and then I edited the Email Address and changed the previous value  (which was an employee email address) to 'noreply@someaddress.com' . I then reran a test on the Sandbox Force.com Site page form and submitted the user information on that page form.   The controller for the site then sends the user an email notification and I verified that the Sender or From email was 'noreply@someaddress.com' .  So I never really had to use Org Wide Email Address at all. I just had to make sure that the Site Guest User Email was set to 'noreply@someaddress.com' and had the controller code setup the email using Subject, SenderDIsplayName,Replyto, and the BCC headers before sending the email.

I am still using Portal users but this should be the last project in using Protals for us.

Thanks for your help. USing your ideas I was able to think about that User Record and changing that email address.

This was selected as the best answer
Markus KellerMarkus Keller
There is an Salesforce idea to this topic: https://success.salesforce.com/ideaView?id=08730000000aRxRAAU