using System.Net;
using System.Net.Mail;
class Mailer
{
public bool SendMail(string email)
{
SmtpClient client = new SmtpClient("IP adress of the computer that relay messages");
MailAddress from = new MailAddress("some_email@your_domain.com")
MailAddress to = new MailAddress(email);
MailMessage message = new MailMessage(from, to);
message.Body = "hi there..";
message.Subject = "Account Activation";
client.Send(message);
}
}
this code relays smtp to a mail server but it is done in vs 2005. Can anybody help me to convert this to vs 2003 MS.net 1.1. or another way of doing this please help me.