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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PrakashN
    New Member
    • Sep 2007
    • 43

    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
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    If you have office installed try office.interop? Why dont you want to use smtp?

    Comment

    • dvgoswami
      New Member
      • Mar 2009
      • 2

      #3
      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.

      Comment

      Working...