I’m sending mails with the following settings and it works fine.
mailServer = New SMTPSecureSocket mailServer.Address = "smtp.mail.com" mailServer.Port = 465 mailServer.ConnectionType = SMTPSecureSocket.SSLv23 mailServer.Secure = True
But with the following the recipient of the mail sees only the sender mail address like “firstname.lastname@example.org”
mailServer.Username = "email@example.com" mailServer.Password = "****"
I’d like the recipient to see sender “Common Name” using something like “Common Name” firstname.lastname@example.org"
I tried with single quotes:
mailServer.Username = "'Common Name' <email@example.com>"
and without single quotes:
mailServer.Username = "Common Name <firstname.lastname@example.org>"
But neither solution works, the mail is not sent…
Any suggestions ?