0

I am sending email by creating a Messaging.SingleEmailMessage object and then using Messaging.send().

The emails are being sent out successfully, but the from address is a very long url with a big id followed by .salesforce.com, which doesn't look great.

Is there any way to set the from address to be my company's custom domain?

Thanks

2

1 Answer 1

1

FROM Email address can be changed by adding and verifying an organization-wide address. While the email can be sent out by setting an Organization-wide address, there are additional steps to be taken that to ensure that the emails are received by everyone if the sender compliance is enabled.

Make sure that your company has added SPF/DKIM keys as CNAME's to validate the sender and make sure that your email addess cannot be spoofed.

1
  • Thanks for your answer Manjit. Very helpful.
    – Joe
    Mar 14, 2020 at 12:59

Not the answer you're looking for? Browse other questions tagged .