01.Blogs :
payat  

smtp relay

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.

posted on Friday, February 24, 2006 2:37 PM by payat


 
03.UPDATE CALENDAR :
<February 2006>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
2627281234
567891011

05.MY LINKS :

07.Subscriptions :

Subscriptions


© Copyright 2005 Microsoft Corporation. All Rights Reserved.
Terms of Use | Privacy Statement | Code of Conduct | Hosted by MaximumASP for Microsoft
WHO-BAR