Sending Email in vb .Net 2003 with out SMPTServer or Using OutLook Express

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • dvgoswami
    replied
    Hi,

    it's simple
    Download dll from.




    //Now prepare your message.
    MailMessage mail = new MailMessage();
    mail.To.Add(&qu ot;someone@some domail.com&quot ;);
    mail.From = new MailAddress(&qu ot;tome@somedom ain.com");
    mail.Subject = "Send email without SMTP server";
    mail.Body = "Yep, its workin!!!!&quot ;;

    //Send message
    string domain = mail.To[0].Address.Substr ing(mail.To[0].Address.IndexO f('@') + 1);
    SendSMTP.SmtpDi rect.SmtpServer = SendSMTP.DnsLoo kUp.GetMXRecord s(domain)[0];
    SendSMTP.SmtpDi rect.Send(mail) ;

    Have look at http://dvgoswami.googlepages.com/ for complete details.


    Done!

    Tx.
    Dipak.

    Leave a comment:


  • kenobewan
    replied
    If you have office installed try office.interop? Why dont you want to use smtp?

    Leave a comment:


  • Sending Email in vb .Net 2003 with out SMPTServer or Using OutLook Express

    Hai,

    i m doing one web project in vb .Net 2003. I want to send email from my application . can any one help me how to send email without using SMTP Server , Using OutLook Express.Thaks you in advance
Working...