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