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
Salesforce Dev199Salesforce Dev199 

Cannot receive email when we send email as a guest site user

Hello Everyone,
I've a lightning out app, and added this app in salesforce "Sites".
I'm not receiving any emails as I'm supposed to receive based on some action in the lwc app placed in lightning app. 
I've given the apex class permission to Guest site user. In debug log I checked the status of email is success = true.. still I'm not able to receive emails.
Can anyone know what extra pernission should we give in order to receive emails from Guest site user?
VinayVinay (Salesforce Developers) 
Check steps mentioned below for sending email as Guest User.

https://help.salesforce.com/s/articleView?id=000362827&type=1

Please mark as Best Answer if above information was helpful.

Thanks,
Juan Miguel Mendoza CruzJuan Miguel Mendoza Cruz
Hi,

I've tried adding my email to the guest user and giving corresponding permissions to he guest profile but doesn't work. All the classes were created with without sharing modifier and the profile had access to all of them.

Finally I got it using an OrgWideEmailAddress. 

Hope it helps.