I want to be able to send an email from a webservice I am currently making.
How can I show my name in the address field.
I tried this in the MailFrom Field:
dim msg as new EmailMessage
msg.FromAddress = "My Name <info@domain.com>"
But that doesn’t work. Should I use a header instead?
[quote=252478:@Tim Parnell]A little bit of google, and tada, maxprog thread on the issue: http://www.maxprog.com/forum/viewtopic.php?t=5149
Maxprog uses Xojo so I would bet the result is the same.[/quote]
In the documentation of SocketCore.LastErrorCode I see a link.
From what I understand it means “Invalid Argument”.
I don’t use port 25. My server uses port 465 for SSL connections. I entered the correct username and password.
Do you think I need to include certificates?
When I set SMTP.Secure = False, and set the correct non-secure port number, 587 in my case… everything works well.
But to be able to send mail through a secure connection would be nice.
Do you use MBS Plugins?
If you send via CURL and our CurlEmailMBS class, you can set from with name and email and the plugin will make sure the name is encoded properly.
Well… I found a way to add a name to the FromAddress.
In the message object I must not assign anything to the FromAddress property. Instead I add a header: