sending e-mail in VB.NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Herfried K. Wagner [MVP]

    #16
    Re: sending e-mail in VB.NET

    * "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @msn.com> scripsit:[color=blue]
    > A second item I wanted to add, but I do not have a sample.
    >
    > Use a mailto url & Process.Start to have IE "send" the message, however I
    > believe this will cause the message to pop up and the user will actually
    > need to click Send.[/color]

    Something like that?

    <http://groups.google.c om/groups?selm=uld 6n9xnDHA.1632%4 0TK2MSFTNGP10.p hx.gbl>

    Yes -- this code will launch the default email application installed on
    the system and the user will have to press "Send" himself.

    --
    Herfried K. Wagner [MVP]
    <http://www.mvps.org/dotnet>

    Comment

    • Didymus

      #17
      Re: sending e-mail in VB.NET

      I tried Herfried's link, modified my code accordingly, and it works great!

      Thanks again Herfried
      Gary


      Comment

      • Cor

        #18
        Re: sending e-mail in VB.NET

        Hi Herfried,

        Now I can add Fergus with that sample.

        But it is no alternative for webmail.

        I write the alternative at Jay B's thread.

        Cor


        Comment

        • Cor

          #19
          Re: Re: sending e-mail in VB.NET

          Hi Jay B,

          Thanks for your answer, but I am not totaly convinced, I do not know if I
          will test it.
          [color=blue]
          > CDOSYS itself is not really an SMTP server, it is a COM component that you
          > use to connect to an SMTP server. System.Web.Mail .SmtpMail is a wrapper[/color]
          for[color=blue]
          > this COM component.[/color]

          That I thought that it was and why could that not be in a W'98, XP home or
          even a special made Linux Net environment.

          If you say, I am 100% sure it is not in W'98 and XP home I will not test.

          An alternative when it really does not work is in my opinion not a
          connection to Outlook but using a webpage.
          CDO is for me a component for "sending" batch mail, and that not to confuse
          with retrieving batch mail what is something totaly different).

          That I did use with classic ASP and in test with ASPX.

          Moreover, because of that my first thought was that it would not work on a
          computer without IIS-SMTP, but when I did look in the Microsoft,
          documentation and even more now I see your sentence above I thought why not.

          The alternative a webpage can run on every computer (even a Mac) because
          then it is processed at the web server, which has than of course to be in
          the OS range you have mentioned.

          Can you tell me if you are 100% sure that the connect component cannot run
          on W'98?


          Cor



          Comment

          • Massimo Zaccarin

            #20
            Re: sending e-mail in VB.NET

            ok... I've done a test and.... it doesn't work under Win98
            I'm writing a class that use sockets and it seems to work (I haven't tested
            it hardly)

            Bye


            "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
            news:%236onepV0 DHA.2448@TK2MSF TNGP12.phx.gbl. ..[color=blue]
            > * "Massimo Zaccarin" <massimo@zaccar in.it> scripsit:[color=green]
            > > does it mean that my app will not send e-mails from a Win98 client?
            > > does that class use CDONTS?
            > >
            > > is there a way to send e-mails from Win98 (without using socket)?[/color]
            >
            > Abderaware sells a nice mail component, but I don't know if it works on
            > Windows 98:
            >
            > <http://www.abderaware. com/>
            >
            > --
            > Herfried K. Wagner [MVP]
            > <http://www.mvps.org/dotnet>[/color]


            Comment

            • Massimo Zaccarin

              #21
              Re: Re: sending e-mail in VB.NET

              ok... I've done a test and.... it doesn't work under Win98
              I'm writing a class that use sockets and it seems to work (I haven't tested
              it hardly)

              Bye

              "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @msn.com> wrote in message
              news:%23To89BW0 DHA.2948@TK2MSF TNGP09.phx.gbl. ..[color=blue]
              > Cor,
              > I was trying to avoid this question, as I did not have anything really to
              > add. ;-)
              >
              > As Herfried stated, you can use interop with Outlook, however Outlook may
              > not be installed on a machine.
              >
              > The System.Web.Mail .SmtpMail class requires "Collaborat ion Data Objects[/color]
              for[color=blue]
              > Windows 2000 (CDOSYS)" which as was pointed out requires a Windows 200,
              > Windows XP Professional, or Windows Server 2003. The older CDONTS on[/color]
              Windows[color=blue]
              > NT is not specifically CDOSYS...
              >
              > CDOSYS itself is not really an SMTP server, it is a COM component that you
              > use to connect to an SMTP server. System.Web.Mail .SmtpMail is a wrapper[/color]
              for[color=blue]
              > this COM component.
              >
              > CDOSYS is considered part of the OS on Windows 200, Windows XP[/color]
              Professional,[color=blue]
              > or Windows Server 2003, hence the requirement for those OS's.
              >
              > About the only thing I can really add, is what someone else suggested the
              > other day:
              >
              > The OP should consider upgrading to Windows 2000 or Windows XP, as both[/color]
              are[color=blue]
              > more stable the 98, of course not all machines can run W2K or XP, which is
              > where the products the others mentioned are viable options.
              >
              > Hope this helps
              > Jay
              >
              >
              > "Cor" <non@non.com> wrote in message
              > news:OqWgivV0DH A.2568@TK2MSFTN GP09.phx.gbl...[color=green]
              > > Hi Herfried,
              > >
              > > I think your answer is not right, but i am not sure because you and Tom[/color]
              > said[color=green]
              > > so, therefore I am waiting on Jay B and if that takes long I will maybe
              > > investigate it.
              > >
              > > The way you describe it looks to me if a user cannot use Outlook from a
              > > win98 client, I can asure you he can.
              > >
              > > Cor
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • Herfried K. Wagner [MVP]

                #22
                Re: sending e-mail in VB.NET

                * "Cor" <non@non.com> scripsit:[color=blue]
                > Thanks for your answer, but I am not totaly convinced, I do not know if I
                > will test it.
                >[color=green]
                >> CDOSYS itself is not really an SMTP server, it is a COM component that you
                >> use to connect to an SMTP server. System.Web.Mail .SmtpMail is a wrapper[/color]
                > for[color=green]
                >> this COM component.[/color]
                >
                > That I thought that it was and why could that not be in a W'98, XP home or
                > even a special made Linux Net environment.[/color]

                IMO it shouldn't be the problem to reimplement the classes for Linux or
                an older Windows version -- but it's a lot of work.

                ;-)

                --
                Herfried K. Wagner [MVP]
                <http://www.mvps.org/dotnet>

                Comment

                • Herfried K. Wagner [MVP]

                  #23
                  Re: sending e-mail in VB.NET

                  * "Cor" <non@non.com> scripsit:[color=blue]
                  > Now I can add Fergus with that sample.
                  >
                  > But it is no alternative for webmail.
                  >
                  > I write the alternative at Jay B's thread.[/color]

                  I read it...

                  --
                  Herfried K. Wagner [MVP]
                  <http://www.mvps.org/dotnet>

                  Comment

                  • Jay B. Harlow [MVP - Outlook]

                    #24
                    Re: Re: sending e-mail in VB.NET

                    Cor[color=blue]
                    > Can you tell me if you are 100% sure that the connect component cannot run
                    > on W'98?[/color]

                    It is not on W98 as it only ships with W2K, WinXP & Windows Server 2003.

                    The following site only says Windows XP, while the .NET docs say XP Pro.



                    I do not have XP Home to verify if CDOSYS ships with it or not, I will ask
                    my fellow Outlook MVPs.

                    This page explicitly states not available on Windows 98!

                    [color=blue]
                    > even a special made Linux Net environment.[/color]
                    Remember CDOSYS is an implementation detail. When System.Web.Mail .SmtpMail
                    is ported to Linux, it could be implemented with Sockets or a "native" Linux
                    SMTP library, instead of CDOSYS.

                    Hope this helps
                    Jay

                    "Cor" <non@non.com> wrote in message
                    news:%23m9D0Id0 DHA.2752@TK2MSF TNGP09.phx.gbl. ..[color=blue]
                    > Hi Jay B,
                    >
                    > Thanks for your answer, but I am not totaly convinced, I do not know if I
                    > will test it.
                    >[color=green]
                    > > CDOSYS itself is not really an SMTP server, it is a COM component that[/color][/color]
                    you[color=blue][color=green]
                    > > use to connect to an SMTP server. System.Web.Mail .SmtpMail is a wrapper[/color]
                    > for[color=green]
                    > > this COM component.[/color]
                    >
                    > That I thought that it was and why could that not be in a W'98, XP home or
                    > even a special made Linux Net environment.
                    >
                    > If you say, I am 100% sure it is not in W'98 and XP home I will not test.
                    >
                    > An alternative when it really does not work is in my opinion not a
                    > connection to Outlook but using a webpage.
                    > CDO is for me a component for "sending" batch mail, and that not to[/color]
                    confuse[color=blue]
                    > with retrieving batch mail what is something totaly different).
                    >
                    > That I did use with classic ASP and in test with ASPX.
                    >
                    > Moreover, because of that my first thought was that it would not work on a
                    > computer without IIS-SMTP, but when I did look in the Microsoft,
                    > documentation and even more now I see your sentence above I thought why[/color]
                    not.[color=blue]
                    >
                    > The alternative a webpage can run on every computer (even a Mac) because
                    > then it is processed at the web server, which has than of course to be in
                    > the OS range you have mentioned.
                    >
                    > Can you tell me if you are 100% sure that the connect component cannot run
                    > on W'98?
                    >
                    >
                    > Cor
                    >
                    >
                    >[/color]


                    Comment

                    • Peter Huang

                      #25
                      RE: sending e-mail in VB.NET

                      Hi Massimo,

                      Based on my research, SmtpMail uses CDOSYS behind. CDOSYS is not available
                      on Windows 98.
                      You may take a look at the link below.



                      If you have any concern on this issue, please post here.

                      Regards,
                      Peter Huang
                      Microsoft Online Partner Support
                      Get Secure! www.microsoft.com/security
                      This posting is provided "as is" with no warranties and confers no rights.

                      Comment

                      • Massimo Zaccarin

                        #26
                        Re: sending e-mail in VB.NET

                        thanks

                        "Peter Huang" <v-phuang@online.m icrosoft.com> wrote in message
                        news:Jh0EA7y0DH A.2064@cpmsftng xa07.phx.gbl...[color=blue]
                        > Hi Massimo,
                        >
                        > Based on my research, SmtpMail uses CDOSYS behind. CDOSYS is not available
                        > on Windows 98.
                        > You may take a look at the link below.
                        > http://www.c-sharpcorner.com/internet/Pop3Access.asp
                        >
                        >
                        > If you have any concern on this issue, please post here.
                        >
                        > Regards,
                        > Peter Huang
                        > Microsoft Online Partner Support
                        > Get Secure! www.microsoft.com/security
                        > This posting is provided "as is" with no warranties and confers no rights.
                        >[/color]


                        Comment

                        • Peter Huang

                          #27
                          Re: sending e-mail in VB.NET

                          Hi Massimo,

                          As I said in my previous post, since the SMTPMail class will use the
                          CDOSYS.dll shipped from windows 2000, it will not work on windows 98.
                          So you have to do the issue yourself or use an third party tool. As
                          Herfried said, you may try to automation outlook to achieve your aim, but
                          you can not guarantee that all the customers who will use your program will
                          have outlook installed

                          If you have any concern on this issue, please post here.

                          Regards,
                          Peter Huang
                          Microsoft Online Partner Support
                          Get Secure! www.microsoft.com/security
                          This posting is provided "as is" with no warranties and confers no rights.

                          Comment

                          Working...