GFI Software

Welcome to the GFI Software community forum! For support please open a ticket from https://support.gfi.com.

Home » GFI User Forums » Kerio Connect » how to use smtp by C# winform Application (Kerio SMTP send email by Visual stadio application)
how to use smtp by C# winform Application [message #131415] Tue, 16 August 2016 17:46
armandelta2002 is currently offline  armandelta2002
Messages: 1
Registered: August 2016
Location: Iran
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

Previous Topic: kerio connect desktop app for mac
Next Topic: New Kerio Anti-Spam
Goto Forum:
  


Current Time: Thu Jun 01 08:44:46 CEST 2023

Total time taken to generate the page: 0.06896 seconds