hi all
i Use this code to Use kerio smtp server bot i dont know how to config to use the smtp server to use the Windows form application.
SmtpClient ss = new SmtpClient("smtp.server.com",25);
ss.Credentials = new NetworkCredential("KerioUser<_at_>server.com", "A11b6015!");
ss.EnableSsl = true;
ss.DeliveryMethod = SmtpDeliveryMethod.Network;
ss.UseDefaultCredentials = false;
ss.Timeout = 999999;
MailMessage mm = new MailMessage("KerioUser@server.com", "armandelta2002<_at_>gmail.com", "subject here", "my body");
mm.BodyEncoding = UTF8Encoding.UTF8;
mm.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
ss.Send(mm);
server.com is example name
[Updated on: Tue, 16 August 2016 18:02]
Report message to a moderator