SMTP password

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

    SMTP password

    I'm trying to write code that will send an e-mail using WinSock.
    Problem is that my server requires my password for outgoing e-mail.
    What is the SMTP format for supplying the password to the server?? I've
    checked out http://www.faqs.org/rfcs/rfc821.html but there is
    absoulutely nothing concerning authentication. Any help appreciated.
  • Patrick Steele [MVP]

    #2
    Re: SMTP password

    In article <a_rYb.551$kG3. 457@newssvr22.n ews.prodigy.com >,
    copyco@anon.com says...[color=blue]
    > I'm trying to write code that will send an e-mail using WinSock.
    > Problem is that my server requires my password for outgoing e-mail.
    > What is the SMTP format for supplying the password to the server?? I've
    > checked out http://www.faqs.org/rfcs/rfc821.html but there is
    > absoulutely nothing concerning authentication. Any help appreciated.[/color]

    Perhaps it's this one:

    "RFC 2554 - SMTP Service Extension for Authentication"


    --
    Patrick Steele
    Microsoft .NET MVP

    Comment

    • Chad Z. Hower aka Kudzu

      #3
      Re: SMTP password

      copyco <copyco@anon.co m> wrote in news:a_rYb.551$ kG3.457
      @newssvr22.news .prodigy.com:[color=blue]
      > I'm trying to write code that will send an e-mail using WinSock.
      > Problem is that my server requires my password for outgoing e-mail.
      > What is the SMTP format for supplying the password to the server?? I've
      > checked out http://www.faqs.org/rfcs/rfc821.html but there is
      > absoulutely nothing concerning authentication. Any help appreciated.[/color]

      There are about half a dozen ways to specify authentication for SMTP. Only
      LOGIN is simple.

      Use Indy instead, its free and supports all the common methods as well as
      some uncommon ones. Its also free. ;)






      --
      Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
      "Programmin g is an art form that fights back"

      Comment

      • copyco

        #4
        Re: SMTP password

        Yeah, I'm finding that examples given for SMTP authentication just
        aren't working on my server. How does my e-mail client do it then?


        Chad Z. Hower aka Kudzu wrote:
        [color=blue]
        > copyco <copyco@anon.co m> wrote in news:a_rYb.551$ kG3.457
        > @newssvr22.news .prodigy.com:
        >[color=green]
        >>I'm trying to write code that will send an e-mail using WinSock.
        >>Problem is that my server requires my password for outgoing e-mail.
        >>What is the SMTP format for supplying the password to the server?? I've
        >>checked out http://www.faqs.org/rfcs/rfc821.html but there is
        >>absoulutely nothing concerning authentication. Any help appreciated.[/color]
        >
        >
        > There are about half a dozen ways to specify authentication for SMTP. Only
        > LOGIN is simple.
        >
        > Use Indy instead, its free and supports all the common methods as well as
        > some uncommon ones. Its also free. ;)
        >
        > http://www.indyproject.org/
        >
        >
        >
        >
        > --
        > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
        > "Programmin g is an art form that fights back"[/color]

        Comment

        • Chad Z. Hower aka Kudzu

          #5
          Re: SMTP password

          copyco <copyco@anon.co m> wrote in
          news:7BtYb.195$ SO5.26911915@ne wssvr11.news.pr odigy.com:[color=blue]
          > Yeah, I'm finding that examples given for SMTP authentication just[/color]

          Your server probably requires a differenet auth type.
          [color=blue]
          > aren't working on my server. How does my e-mail client do it then?[/color]

          Its probably has code to perform auth.




          --
          Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
          "Programmin g is an art form that fights back"

          Comment

          • Chad Z. Hower aka Kudzu

            #6
            Re: SMTP password

            copyco <copyco@anon.co m> wrote in news:T3uYb.588$ Hb4.83
            @newssvr22.news .prodigy.com:[color=blue]
            > Ok, below is a windows script file I got working. It does what I want
            > which is to send out an e-mail message. Is there any way to do this in
            > a windows application? The only think I'm missing is how to get the
            > authentication to work. I suppose I could somehow shell out to run this
            > script, but wouldn't that be the hard way? Thanks for any help.[/color]

            I told you how. :)

            Impelementing all the popular auth methods would take you a few weeks
            mininmum. Indy already does all this for you - and its free. It doesnt
            require CDO either.



            There is even an SMTP demo with source at:




            --
            Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
            "Programmin g is an art form that fights back"

            Comment

            • copyco

              #7
              Re: SMTP password

              Thanks. Indy looks like a pretty cool tool. However there aren't many
              demos available for VB.NET and the ones that are, are for a newer
              version of Visual Studio :-( So it's gonna take me a while to figure
              out how to use this. Thanks again.


              Chad Z. Hower aka Kudzu wrote:[color=blue]
              > copyco <copyco@anon.co m> wrote in news:T3uYb.588$ Hb4.83
              > @newssvr22.news .prodigy.com:
              >[color=green]
              >>Ok, below is a windows script file I got working. It does what I want
              >>which is to send out an e-mail message. Is there any way to do this in
              >>a windows application? The only think I'm missing is how to get the
              >>authenticatio n to work. I suppose I could somehow shell out to run this
              >>script, but wouldn't that be the hard way? Thanks for any help.[/color]
              >
              >
              > I told you how. :)
              >
              > Impelementing all the popular auth methods would take you a few weeks
              > mininmum. Indy already does all this for you - and its free. It doesnt
              > require CDO either.
              >
              > http://www.indyproject.org/
              >
              > There is even an SMTP demo with source at:
              > http://www.atozed.com/indy/
              >
              >
              >
              > --
              > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
              > "Programmin g is an art form that fights back"[/color]

              Comment

              • lancer@nsoftware.removeme.com

                #8
                RE: Re: SMTP password

                [color=blue]
                > Thanks. Indy looks like a pretty cool tool. However there aren't
                > many[/color]
                demos available for VB.NET and the ones that are, are for a newer[color=blue]
                > version of[/color]
                Visual Studio :-( So it's gonna take me a while to figure[color=blue]
                > out how to use[/color]
                this. Thanks again.[color=blue]
                >[/color]

                I've you're looking for a commercial quality tool,
                you may want to try IP*Works! The .Net Edition contains 39 differenet demos (78
                if you count both C# and VB.Net), several of which are for the SMTP component of
                the toolkit.

                The components will allow you to see what type of authentication
                the server supports through the PITrail event. The SMTP component supports the
                most popular LOGIN and CRAM-MD5 authentication methods.

                Regards,
                Lance
                R.
                /n software
                /n software - The Net Tools Company, our products include IPWorks, WebSockets, Bluetooth, SSL, SSH, S/MIME, OpenPGP, Encrypt, AUTH, SNMP, Zip, E-Payment, OFX, ERP, EDI, BizTalk, SQL Server SSIS, PowerShell, SFTP, etc.


                -

                Comment

                • Chad Z. Hower aka Kudzu

                  #9
                  Re: SMTP password

                  copyco <copyco@anon.co m> wrote in news:JrzYb.2263 7$eM.13893
                  @newssvr24.news .prodigy.com:[color=blue]
                  > Thanks. Indy looks like a pretty cool tool. However there aren't many[/color]

                  Thanks.
                  [color=blue]
                  > demos available for VB.NET and the ones that are, are for a newer[/color]

                  Well there is a mail demo - and more are coming. And you can always ask on
                  the Indy newsgroups. :)
                  [color=blue]
                  > version of Visual Studio :-( So it's gonna take me a while to figure
                  > out how to use this. Thanks again.[/color]

                  Indy does however require .net framework 1.1 - I dont think earlier versions
                  of Visual Studio support 1.1?


                  --
                  Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
                  "Programmin g is an art form that fights back"

                  Comment

                  • Sueffel

                    #10
                    Re: SMTP password


                    "copyco" <copyco@anon.co m> wrote in message
                    news:a_rYb.551$ kG3.457@newssvr 22.news.prodigy .com...[color=blue]
                    > I'm trying to write code that will send an e-mail using WinSock.
                    > Problem is that my server requires my password for outgoing e-mail.
                    > What is the SMTP format for supplying the password to the server?? I've
                    > checked out http://www.faqs.org/rfcs/rfc821.html but there is
                    > absoulutely nothing concerning authentication. Any help appreciated.[/color]

                    Base64 encoding, which is the same encoding you must use for all
                    attachements.

                    HTH,
                    Sueffel


                    ---
                    Outgoing mail is certified Virus Free.
                    Checked by AVG anti-virus system (http://www.grisoft.com).
                    Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004


                    Comment

                    • Sueffel

                      #11
                      Re: SMTP password


                      "Chad Z. Hower aka Kudzu" <cpub@hower.org > wrote in message
                      news:Xns9492EAC 505B96cpub@127. 0.0.1...[color=blue]
                      > copyco <copyco@anon.co m> wrote in news:T3uYb.588$ Hb4.83
                      > @newssvr22.news .prodigy.com:[color=green]
                      > > Ok, below is a windows script file I got working. It does what I want
                      > > which is to send out an e-mail message. Is there any way to do this in
                      > > a windows application? The only think I'm missing is how to get the
                      > > authentication to work. I suppose I could somehow shell out to run this
                      > > script, but wouldn't that be the hard way? Thanks for any help.[/color]
                      >
                      > I told you how. :)
                      >
                      > Impelementing all the popular auth methods would take you a few weeks
                      > mininmum. Indy already does all this for you - and its free. It doesnt
                      > require CDO either.[/color]

                      BTW, took me 2 days to write an SMTP component from scratch. I think it's
                      great that you guys have done this IndyProject, but sometimes people want
                      the satisfaction of doing it themselves, and no one can argue with that.

                      Sueffel



                      ---
                      Outgoing mail is certified Virus Free.
                      Checked by AVG anti-virus system (http://www.grisoft.com).
                      Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004


                      Comment

                      • Chad Z. Hower aka Kudzu

                        #12
                        Re: SMTP password

                        "Sueffel" <someone@somewh ere.com> wrote in news:uusiPuj9DH A.2560
                        @TK2MSFTNGP09.p hx.gbl:[color=blue]
                        > BTW, took me 2 days to write an SMTP component from scratch. I think it's
                        > great that you guys have done this IndyProject, but sometimes people want
                        > the satisfaction of doing it themselves, and no one can argue with that.[/color]

                        Yes, there is a certain satisfaction. But as you find things it doesnt do -
                        it a major pain to have it as a liability. :)


                        --
                        Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
                        "Programmin g is an art form that fights back"

                        Comment

                        • Chad Z. Hower aka Kudzu

                          #13
                          Re: SMTP password

                          "Sueffel" <someone@somewh ere.com> wrote in news:#LzJBtj9DH A.2432
                          @TK2MSFTNGP09.p hx.gbl:[color=blue]
                          > Base64 encoding, which is the same encoding you must use for all
                          > attachements.[/color]

                          Only for LOGIN auth. That wont help with servers that use much newer and more
                          advanced schemes.


                          --
                          Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
                          "Programmin g is an art form that fights back"

                          Comment

                          Working...