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
tbfan6789tbfan6789 

Outbound emails in Apex code going to Junk Folder

Hello I have a scheduled class in Salesforce sandbox that runs a SOQL query on the Case object and checks for specific records. Once they are found, the class will send an e-mail out to specific users. However, the e-mail is going straight to the junk folder. Is there anything in the code I should add or change so the e-mail goes to the inbox?

MrTheTylerMrTheTyler

Howdy,

 

  The contents of the email itself or the address from which the email is coming are causing the messages to be flagged as spam.  Consider checking your text for keywords which may make the message suspicious.  Also, your users may have a spam filitration system on which your network admin might want to whitelist the salesforce email servers (see the email headers of the messages that are being sent to your users).

 

 

Kind Regards,

 

Tyler Hudson
Contact Us - We Can Help!

Salesforce Superheroes
------------------------------
help@salesforcesuperheroes.com
www.salesforcesuperheroes.com
1-888-407-9578 x123