Home » Kerio User Forums » Kerio Connect » how to use smtp by C# winform Application (Kerio SMTP send email by Visual stadio application)

Messages: 1
Karma: 0
Send a private message to this user
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;

server.com is example name

[Updated on: Tue, 16 August 2016 18:02]

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

Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Fri Nov 16 16:58:19 CET 2018

Total time taken to generate the page: 0.94069 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.