Hello,
I am trying to send an email through EASendMail but receive 501 5.5.4 Invalid Address error.
here is my code.
Dim mailAdresses As String = "mymail@company.com"
Dim recipients As AddressCollection = New AddressCollection()
recipients.AddRange(New AddressCollection(mailAdresses))
Dim address As EASendMail.MailAddress = TryCast(recipients(0), EASendMail.MailAddress)
mail.[To].Add(address)
I try also this.
Dim mailAdresses As String = "mymail@company.com"
mail.To = New AddressCollection(mailAdresses)
Nothing helps.
Anyone has any idea?
Thanks.