My problem is the Smtp.Login command
when I try to login, the server says:
Must issue a STARTTLS command first
I can I solve it?
Use Smtp.StartTLS method:
smtp.Connect("server.example.com"); smtp.StartTLS(); smtp.UseBestLogin("user", "password");
There are two modes in which Mail.dll can work:
Click her for more details on using SSL/TLS with SMTP protocol.
Here you can find more information on SSL vs TLS vs STARTTLS