I am trying to set up an email system on my server. It seems that when I use ssl only the smtp server rejects the connection. How can I tell the default email script in ServUO to use Tls encryption?
I was able to get this working but now the smtp server returns 5.7.0 Authentication Required. Apparently Tls12 is too old? I think? Any suggestions?
Heres what I have changed in the code
Post automatically merged:
I was able to get this working but now the smtp server returns 5.7.0 Authentication Required. Apparently Tls12 is too old? I think? Any suggestions?
Heres what I have changed in the code
public static void Configure()
{
if (EmailServer != null)
{
_Client = new SmtpClient(EmailServer, EmailPort);
if (EmailUsername != null)
{
_Client.Credentials = new System.Net.NetworkCredential(EmailUsername, EmailPassword);
}
if (EmailSsl)
_Client.EnableSsl = true;
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
}
}
Last edited: