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. Email sending through vb.net application.

Email sending through vb.net application.

Scheduled Pinned Locked Moved Visual Basic
csharphelp
9 Posts 7 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.
  • H Offline
    H Offline
    hbk_leo
    wrote on last edited by
    #1

    Hi Can anybody help me out for , is it possible to send an email through an vb.net desktop application. Is there any way .

    T 1 Reply Last reply
    0
    • H hbk_leo

      Hi Can anybody help me out for , is it possible to send an email through an vb.net desktop application. Is there any way .

      T Offline
      T Offline
      Tamimi Code
      wrote on last edited by
      #2

      yes you can !! Imports System.Web.Mail in your code then use the MailMessage Class Tamimi - Code

      S 1 Reply Last reply
      0
      • T Tamimi Code

        yes you can !! Imports System.Web.Mail in your code then use the MailMessage Class Tamimi - Code

        S Offline
        S Offline
        Socheat Net
        wrote on last edited by
        #3

        Tamimi you code is use for web application not in window application. ................

        T D S 3 Replies Last reply
        0
        • S Socheat Net

          Tamimi you code is use for web application not in window application. ................

          T Offline
          T Offline
          Tamimi Code
          wrote on last edited by
          #4

          sorry :doh: i know only this way Tamimi - Code

          1 Reply Last reply
          0
          • S Socheat Net

            Tamimi you code is use for web application not in window application. ................

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            The System.Web.xxxx namespace can be used in either type of application. Dave Kreskowiak Microsoft MVP - Visual Basic

            1 Reply Last reply
            0
            • S Socheat Net

              Tamimi you code is use for web application not in window application. ................

              S Offline
              S Offline
              scottgp
              wrote on last edited by
              #6

              Actually, I believe that code will work in a WinForms application as well. I suggest downloading the '101 Visual Basic and C# Code Samples' and taking a look at the one titled 'How-To Send Mail'. Scott

              J 1 Reply Last reply
              0
              • S scottgp

                Actually, I believe that code will work in a WinForms application as well. I suggest downloading the '101 Visual Basic and C# Code Samples' and taking a look at the one titled 'How-To Send Mail'. Scott

                J Offline
                J Offline
                jhoga
                wrote on last edited by
                #7

                Imports System.Web.Mail Private Sub e_mail() 'Create an instance of the MailMessage class Dim mm As New MailMessage mm.To = "bill@fun.com" End Select mm.From = "jhoga@salisburync.gov" mm.Priority = MailPriority.High mm.Subject = "Change made to receipt number: " & strSN mm.Body = "Receipt Number: " SmtpMail.SmtpServer = "mailserver" SmtpMail.Send(mm) End Sub * note "mailserver' is name of a mailserver in my network

                H 1 Reply Last reply
                0
                • J jhoga

                  Imports System.Web.Mail Private Sub e_mail() 'Create an instance of the MailMessage class Dim mm As New MailMessage mm.To = "bill@fun.com" End Select mm.From = "jhoga@salisburync.gov" mm.Priority = MailPriority.High mm.Subject = "Change made to receipt number: " & strSN mm.Body = "Receipt Number: " SmtpMail.SmtpServer = "mailserver" SmtpMail.Send(mm) End Sub * note "mailserver' is name of a mailserver in my network

                  H Offline
                  H Offline
                  hbk_leo
                  wrote on last edited by
                  #8

                  Thanks but i wanted to know that is it possible to send mail through a windowsapplication written in vb.net. If possible please suggest.

                  S 1 Reply Last reply
                  0
                  • H hbk_leo

                    Thanks but i wanted to know that is it possible to send mail through a windowsapplication written in vb.net. If possible please suggest.

                    S Offline
                    S Offline
                    Steven J Jowett
                    wrote on last edited by
                    #9

                    Do you want to know how to send emails via vb.net 2003 or 2005? Steve Jowett

                    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