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. Web Development
  3. ASP.NET
  4. Asp.net

Asp.net

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-net
2 Posts 2 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.
  • R Offline
    R Offline
    rock_mre
    wrote on last edited by
    #1

    How can i send email in asp.net by Language vb like invitation friend to site?

    C 1 Reply Last reply
    0
    • R rock_mre

      How can i send email in asp.net by Language vb like invitation friend to site?

      C Offline
      C Offline
      Caio Kinzel Filho
      wrote on last edited by
      #2

      Its in C#, but you could easily realize how to do it in vb.

      MailMessage yourEmail = new MailMessage(FROM_EMAIL_ADDRESS, TO_EMAIL_ADDRESS);
      yourEmail.Subject = "Your Email Subject";
      SmtpClient smtpServer = new SmtpClient(SMTP_SERVER);
      smtpServer.Credentials = new NetworkCredential(SMTP_USER, SMTP_PASSWORD);
      smtpServer.Send(yourEmail);
      

      Intelligence is almost useless for those who have nothing else! Email: caiokf@gmail.com

      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