how to send email

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TBoon

    #1

    how to send email

    how do u send email in vb.net?
    any samples?


  • Adamz5

    #2
    Re: how to send email



    Hi easy simple method is to use early binding referencing
    outlook

    Dim oOutL As New Outlook.Applica tion
    Dim oMail As Outlook.MailIte m
    oMail = oOutL.CreateIte m(Outlook.OlIte mType.olMailIte m)
    oMail.UnRead = True
    oMail.To = "adamzuneidissa t@domainname.co m"
    oMail.Subject = "hello"
    oMail.send()


    but better with late binding as its client independant

    Hope this helps

    Adam Zuneid Issat



    Comment

    • rowe_newsgroups

      #3
      Re: how to send email

      On Jan 29, 10:35 am, "TBoon" <allblack...@ho tmail.comwrote:
      how do u send email in vb.net?
      any samples?


      Thanks,

      Seth Rowe [MVP]

      Comment

      • TBoon

        #4
        Re: how to send email

        thanks a lot guys...

        "TBoon" <allblacks15@ho tmail.comwrote in message
        news:uhCNwwoYIH A.4208@TK2MSFTN GP04.phx.gbl...
        how do u send email in vb.net?
        any samples?
        >

        Comment

        • =?Utf-8?B?VGVycnk=?=

          #5
          Re: how to send email

          Excuse me for jumping in but I have a follow up question on this technique.
          When I use this method, Outlook jumps up with a dialog telling me that "A
          program is trying to automatically send email on your behalf...."
          Is there a way to tell outlook in 'advance' that this program is allowed to
          do this?
          Also, Outlook uses the default email account as the from but I can not see a
          way to select a different from account - know of a way to do that?

          TIA
          --
          Terry


          "Adamz5" wrote:
          >
          >
          Hi easy simple method is to use early binding referencing
          outlook
          >
          Dim oOutL As New Outlook.Applica tion
          Dim oMail As Outlook.MailIte m
          oMail = oOutL.CreateIte m(Outlook.OlIte mType.olMailIte m)
          oMail.UnRead = True
          oMail.To = "adamzuneidissa t@domainname.co m"
          oMail.Subject = "hello"
          oMail.send()
          >
          >
          but better with late binding as its client independant
          >
          Hope this helps
          >
          Adam Zuneid Issat
          >
          >
          >
          >

          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: how to send email

            "TBoon" <allblacks15@ho tmail.comschrie b:
            how do u send email in vb.net?
            ..NET 2.0: 'System.Net.Mai l'.
            ..NET 1.*: 'System.Web.Mai l'.

            --
            M S Herfried K. Wagner
            M V P <URL:http://dotnet.mvps.org/>
            V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

            Comment

            • =?Utf-8?B?TWFudWVs?=

              #7
              RE: how to send email

              There is also a free version of a commercial product



              "TBoon" wrote:
              how do u send email in vb.net?
              any samples?
              >
              >
              >

              Comment

              • Eric Moreau

                #8
                Re: how to send email

                see http://www.emoreau.com/Entries/Artic...emNetMail.aspx

                --

                HTH

                Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
                Conseiller Principal / Senior Consultant
                Moer inc. (http://www.emoreau.com)
                Membre du réseau .NET Expertise (www.dotnet-expertise.com)



                "TBoon" <allblacks15@ho tmail.comwrote in message
                news:uhCNwwoYIH A.4208@TK2MSFTN GP04.phx.gbl...
                how do u send email in vb.net?
                any samples?
                >

                Comment

                Working...