SendExchangeMailMessage gets error when SaveCopy is selected: Send Exchange Mail Message: The SMTP address format is invalid

Hi Community,

I’ve been getting an error “The SMTP address format is invalid.” from a SendExchangeMailMessage-Activity, but only if I’ve ticked to box for “SaveCopy”.

If the SaveCopy-option is not selected everything works fine so it does not seem to be an issue with the credentials or server I give to the activity.

Getting Messages, Moving Messages and Deleting Message via the Exchange Activities works fine as well. It’s only the Send Message activity with the option SaveCopy selected.

Has anyone had the same problem and got a fix?



Did you try to change the version of mail activities and check if that issue persists


Yes, I’ve been using v1.20.1 and have upgraded to 1.20.3 (latest). Error still exists.

Hello @doenisf

senderEmail = “
recipientEmail = “

senderEmail = senderEmail.Trim()
recipientEmail = recipientEmail.Trim()

isValidSender = System.Text.RegularExpressions.Regex.IsMatch(senderEmail, “[1]+@[A-Za-z0-9.-]+.[A-Za-z]{2,}$”)
isValidRecipient = System.Text.RegularExpressions.Regex.IsMatch(recipientEmail, “[2]+@[A-Za-z0-9.-]+.[A-Za-z]{2,}$”)

If (isValidSender AndAlso isValidRecipient)
From = senderEmail
To = recipientEmail
Subject = “Your Subject”
Body = “Your Message”
SaveCopy = True
Log Message: “Invalid sender or recipient email address format.”
End If

Thanks & Cheers!!!

  1. A-Za-z0-9._%± ↩︎

  2. A-Za-z0-9._%± ↩︎

Setting the sender mail helped resolve the problem. I wasn’t setting the sender email since sending without saving a copy was working fine without it.

Seems like the sender email is needed to save a copy to the Sent Items folder. Thanks!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.