Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. send email from localhost to webmail

send email from localhost to webmail

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    besah
    wrote on last edited by
    #1

    Hi all, can someone help out on how to send email from my local host to the webmail using vb.Net??? Thanks in advance.. besah

    P 1 Reply Last reply
    0
    • B besah

      Hi all, can someone help out on how to send email from my local host to the webmail using vb.Net??? Thanks in advance.. besah

      P Offline
      P Offline
      prokleta_nedelja
      wrote on last edited by
      #2

      well you can try this imports system.net.mail Private sub SendIT Dim objMail as new MailMessage (strFrom, strTo, strSubject, strBody) Dim objSend as new SMTPClient objSend.Host="Your SMTP server" objSend.Send(objMail) End sub As You can see, it is simple ;) Oggy ;)

      S 1 Reply Last reply
      0
      • P prokleta_nedelja

        well you can try this imports system.net.mail Private sub SendIT Dim objMail as new MailMessage (strFrom, strTo, strSubject, strBody) Dim objSend as new SMTPClient objSend.Host="Your SMTP server" objSend.Send(objMail) End sub As You can see, it is simple ;) Oggy ;)

        S Offline
        S Offline
        Swammingo
        wrote on last edited by
        #3

        Sorry ...but i did not get it ... "Localhost" .... if u want to use localhost then u shud configure smtp relay option in IIS. Correct me if i am wrong .. Thnx ...hope it helps. Swammingo.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups