Activity Forums Salesforce® Discussions Not sending emails to some domains from Salesforce

  • Not sending emails to some domains from Salesforce

    Posted by jitesh on July 12, 2016 at 7:55 am

    I don't want to send emails to some particular domain's from Salesforce.

    My org is not allowed to send emails to some particular domains , and we send a lot of emails from Salesforce .

    So , is there a way in which I can save a list of domains in Salesforce and whenever I'am sending the emails from Salesforce to multiple email addresses then at the time of sending ,it removes the email addresses that have the domain similar to anyone present in blacklisted domains from sent list.

    or

    While adding the emails to the sent list it asks me to remove the blacklisted domain email addresses and tells me which all email addresses belong to the blacklisted domain.

    shariq replied 6 years, 2 months ago 4 Members · 3 Replies
  • 3 Replies
  • Abhinav

    Member
    July 20, 2016 at 10:26 am

    Hi Jitesh,

    You can create one custom setting and store the blacklist domain under that custom setting. While sending the emails you can check the custom setting record that which all domains are not valid and skip that domains.

  • Parul

    Member
    September 12, 2018 at 4:44 pm

    Hi Jitesh,

    We can achieve this use a standard field in Salesforce. Their is a field in Salesoforce called "EmailOptOut" . If this is checked then no mass emails are sent to the record with this checkbox checked.

    We can add the blacklisted domain in the custom setting and whenever the record is created of updated we can check if it has a blacklisted domain the check off the "Email opt out" checkbox which does not allow to send any email from Salesforce for that particular record.

    Thanks

  • shariq

    Member
    September 14, 2018 at 2:02 am

    Hi,

    You can achieve this by saving the domain in database, best is to save it in a custom setting then get those custom setting records when sending a mail.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos