CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2006
    Posts
    7

    how do i send a mail from vb.net?

    i am using vb.net 2003.i do my project in windows application.i want to send a mail from vb.net windows application.plz help me.

  2. #2
    Join Date
    Jan 2003
    Location
    7,107 Islands
    Posts
    2,487

    Re: how do i send a mail from vb.net?

    you may check the System.Web.Mail.SmtpMail (reference System.Web)

    simple sample code:
    Code:
    Dim m As System.Web.Mail.SmtpMail
    m.Send("<recipient email address>", "<sender email address>", "hello world", "good morning!")
    Edit: other approach can be found in this thread (by HannesTheGreat)http://www.codeguru.com/forum/showthread.php?t=426513
    Last edited by Thread1; June 19th, 2007 at 09:42 PM.
    Busy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured