Share Your Experience With Others

Using Organisation Wide Address in Sending Email using Apex

  • Why we need Org Wide Address:
    Sometimes we need to set an email id for our Salesforce org that when the customer will reply to our email,all the emails should come to an email id which we set for our org.In that case we create Org Wide Address.
  • When you create an org wide address, verification email is sent to that email to verify the email.
  • If you will not verify that you can’t use that in apex or anywhere in Salesforce.
  • So today i will show you how to create org wide address and will use in apex to send an email.

orgwideaddress.PNG

orgwideaddress2verifiedaddress

apex code used to set org wide address

Please share your feedback and suggestions in comments.

3 responses to “Using Organisation Wide Address in Sending Email using Apex”

  1. Vipin Indora Avatar
    Vipin Indora

    can you share the screenshot where you got email and that body text.

    Like

    1. Kamaal Ahmad Usmani Avatar
      Kamaal Ahmad Usmani

      You can check that email by giving your email id in to email and in repmail also.Due to some system restrictions i can’t add output screenshot.

      Like

  2. stupidpeopleofamerica.com Avatar
    stupidpeopleofamerica.com

    Informative article, exactly what I was looking for.

    Like

Leave a reply to Kamaal Ahmad Usmani Cancel reply