tags:

views:

228

answers:

1

What is smartermail? How can i send mail via smartermail installed on server? Any smtp settings in web.config?

+1  A: 

SmarterMail is an SMTP mail server, so you could use the SmtpClient class to send mail:

var client = new SmtpClient("hostnameOfYourSmtpServer");
var from = new MailAddress("[email protected]");
var to = new MailAddress("[email protected]");
var message = new MailMessage(from, to);
message.Subject = "test subject";
message.Body = "This is a test e-mail message sent by an application. ";
client.Send(message);
Darin Dimitrov