Scrip for sending an eMail via PHP and Outlook

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

    #1

    Scrip for sending an eMail via PHP and Outlook

    Hello all,

    our configuration is as following described:

    - OS: Windows 2000
    - Apache server 1.3
    - Php 3.8
    - MS outlook client 2000

    _and_ no SMTP server available in the whole intranet.

    We are looking for a php script for sending eMail with help of the
    above named outlook client. Can somebody help?

    Thanks in advance,

    Sven
  • Kevin Thorpe

    #2
    Re: Scrip for sending an eMail via PHP and Outlook

    Sven Templin wrote:[color=blue]
    > Hello all,
    >
    > our configuration is as following described:
    >
    > - OS: Windows 2000
    > - Apache server 1.3
    > - Php 3.8
    > - MS outlook client 2000
    >
    > _and_ no SMTP server available in the whole intranet.
    >
    > We are looking for a php script for sending eMail with help of the
    > above named outlook client. Can somebody help?[/color]

    It begs the question.... where exactly is Outlook sending mail to?
    Surely it must be configured to send to a known SMTP server, or does the
    Outlook/Exchange combination use some other proprietary mail protocol?

    Comment

    • clippy the paperclip

      #3
      Re: Scrip for sending an eMail via PHP and Outlook

      Sven Templin wrote:
      [color=blue]
      > Hello all,
      >
      > our configuration is as following described:
      >
      > - OS: Windows 2000
      > - Apache server 1.3
      > - Php 3.8
      > - MS outlook client 2000
      >
      > _and_ no SMTP server available in the whole intranet.
      >
      > We are looking for a php script for sending eMail with help of the
      > above named outlook client. Can somebody help?
      >
      > Thanks in advance,
      >
      > Sven[/color]

      install Mandrake on the box.

      make sure you have
      the postfix, php , php-cli, apache packages installed.

      problem solved.



      Comment

      • Kevin Thorpe

        #4
        Re: Scrip for sending an eMail via PHP and Outlook

        >>[color=blue][color=green]
        >>We are looking for a php script for sending eMail with help of the
        >>above named outlook client. Can somebody help?
        >>[/color]
        > install Mandrake on the box.
        >
        > make sure you have
        > the postfix, php , php-cli, apache packages installed.
        >
        > problem solved.[/color]

        I could go one better than that. If you visit
        http://www.f-secure.com/virus-info/ you get a huge list of scripts to
        send e-mail using Outlook ;-) Better still you don't even have to use
        your own box ;->

        Comment

        • clippy the paperclip

          #5
          Re: Scrip for sending an eMail via PHP and Outlook

          Kevin Thorpe wrote:
          [color=blue][color=green][color=darkred]
          >>>
          >>>We are looking for a php script for sending eMail with help of the
          >>>above named outlook client. Can somebody help?
          >>>[/color]
          >> install Mandrake on the box.
          >>
          >> make sure you have
          >> the postfix, php , php-cli, apache packages installed.
          >>
          >> problem solved.[/color]
          >
          > I could go one better than that. If you visit
          > http://www.f-secure.com/virus-info/ you get a huge list of scripts to
          > send e-mail using Outlook ;-) Better still you don't even have to use
          > your own box ;->[/color]

          ha ha! .... good post!

          ;-)

          Comment

          • Manuel Lemos

            #6
            Re: Scrip for sending an eMail via PHP and Outlook

            Hello,

            On 07/28/2004 10:23 AM, Sven Templin wrote:[color=blue]
            > our configuration is as following described:
            >
            > - OS: Windows 2000
            > - Apache server 1.3
            > - Php 3.8
            > - MS outlook client 2000
            >
            > _and_ no SMTP server available in the whole intranet.
            >
            > We are looking for a php script for sending eMail with help of the
            > above named outlook client. Can somebody help?[/color]

            Under Windows without a SMTP server, only by sending messages directly
            to the recipient SMTP server. In that case you may want to try this
            class that can compose and send messages via SMTP and supports direct
            delivery.

            http://www.phpclasses.org/mimemessage

            You also need these:

            http://www.phpclasses.org/smtpclass

            http://www.phpclasses.org/phpresolver

            There is a simpler and much faster and safe way that I am testing but
            you need to have IIS mail server or Exchange on Windows 2000 or better.
            If you or anybody is interested in participating in the tests, just mail
            me privately.

            --

            Regards,
            Manuel Lemos

            PHP Classes - Free ready to use OOP components written in PHP
            http://www.phpclasses.org/

            PHP Reviews - Reviews of PHP books and other products
            http://www.phpclasses.org/reviews/

            Metastorage - Data object relational mapping layer generator

            Comment

            • Manuel Lemos

              #7
              Re: Scrip for sending an eMail via PHP and Outlook

              Hello,

              On 07/28/2004 10:23 AM, Sven Templin wrote:[color=blue]
              > our configuration is as following described:
              >
              > - OS: Windows 2000
              > - Apache server 1.3
              > - Php 3.8
              > - MS outlook client 2000
              >
              > _and_ no SMTP server available in the whole intranet.
              >
              > We are looking for a php script for sending eMail with help of the
              > above named outlook client. Can somebody help?[/color]

              Under Windows without a SMTP server, only by sending messages directly
              to the recipient SMTP server. In that case you may want to try this
              class that can compose and send messages via SMTP and supports direct
              delivery.

              http://www.phpclasses.org/mimemessage

              You also need these:

              http://www.phpclasses.org/smtpclass

              http://www.phpclasses.org/phpresolver

              There is a simpler and much faster and safe way that I am testing but
              you need to have IIS mail server or Exchange on Windows 2000 or better.
              If you or anybody is interested in participating in the tests, just mail
              me privately.

              --

              Regards,
              Manuel Lemos

              PHP Classes - Free ready to use OOP components written in PHP
              http://www.phpclasses.org/

              PHP Reviews - Reviews of PHP books and other products
              http://www.phpclasses.org/reviews/

              Metastorage - Data object relational mapping layer generator

              Comment

              • Chung Leong

                #8
                Re: Scrip for sending an eMail via PHP and Outlook


                "Kevin Thorpe" <kevin@pricetra k.com> wrote in message
                news:4107aaaa$0 $27338$afc38c87 @news.easynet.c o.uk...[color=blue]
                > Sven Templin wrote:[color=green]
                > > Hello all,
                > >
                > > our configuration is as following described:
                > >
                > > - OS: Windows 2000
                > > - Apache server 1.3
                > > - Php 3.8
                > > - MS outlook client 2000
                > >
                > > _and_ no SMTP server available in the whole intranet.
                > >
                > > We are looking for a php script for sending eMail with help of the
                > > above named outlook client. Can somebody help?[/color]
                >
                > It begs the question.... where exactly is Outlook sending mail to?
                > Surely it must be configured to send to a known SMTP server, or does the
                > Outlook/Exchange combination use some other proprietary mail protocol?[/color]

                Indeed. Outlook does far than e-mail after all. Don't know what it uses
                exactly. DCOM I suspect. Exchange can be configured to act as an SMTP server
                however.

                To send a email via the Outlook client with the help of Office Automation
                (i.e. COM). Not going to be pretty though.


                Comment

                • Nikolai Chuvakhin

                  #9
                  Re: Scrip for sending an eMail via PHP and Outlook

                  sven.templin@gm x.net (Sven Templin) wrote in message
                  news:<120e075c. 0407280523.2a00 c3e7@posting.go ogle.com>...[color=blue]
                  >
                  > our configuration is as following described:
                  >
                  > - OS: Windows 2000
                  > - Apache server 1.3
                  > - Php 3.8
                  > - MS outlook client 2000
                  >
                  > _and_ no SMTP server available in the whole intranet.
                  >
                  > We are looking for a php script for sending eMail with help of the
                  > above named outlook client. Can somebody help?[/color]

                  Yes, but there's no need (and, honestly, no way) to use the Outlook
                  client for that. As long as there is an external SMTP server available,
                  you can send mail through it using phpMailer or another similar script.

                  phpMailer is available at http://phpmailer.sf.net/

                  Cheers,
                  NC

                  Comment

                  • Sven Templin

                    #10
                    Re: Scrip for sending an eMail via PHP and Outlook

                    clippy the paperclip <bill.gates@mic rosoft.com> wrote in message news:<4107bd33$ 0$24420$afc38c8 7@news.easynet. co.uk>...[color=blue]
                    > Kevin Thorpe wrote:
                    >[color=green][color=darkred]
                    > >>>
                    > >>>We are looking for a php script for sending eMail with help of the
                    > >>>above named outlook client. Can somebody help?
                    > >>>
                    > >> install Mandrake on the box.
                    > >>
                    > >> make sure you have
                    > >> the postfix, php , php-cli, apache packages installed.
                    > >>
                    > >> problem solved.[/color]
                    > >
                    > > I could go one better than that. If you visit
                    > > http://www.f-secure.com/virus-info/ you get a huge list of scripts to
                    > > send e-mail using Outlook ;-) Better still you don't even have to use
                    > > your own box ;->[/color]
                    >
                    > ha ha! .... good post!
                    >
                    > ;-)[/color]

                    Thanks for your strong support! Yes, normally we are using SuSE Linux
                    or Slackware with all the stuff (sendmail...), but now we are in a
                    very restricted environment inside the intranet of an big automotive
                    manufacturer. And we have to use above named software. The exchange
                    server, running somewere in the intranet, does not listen on smtp
                    port, therefore I have to use the installed outlook client to forward
                    eMails. It is also impossible to install my own pop3 mailserver,
                    because all eMail clients have to be configured for the new pop3
                    server.

                    Bye, Sven

                    Comment

                    • Sven Templin

                      #11
                      Re: Scrip for sending an eMail via PHP and Outlook

                      Manuel Lemos <mlemos@acm.org > wrote in message news:<41080B67. 706@acm.org>...[color=blue]
                      > Hello,
                      >
                      > On 07/28/2004 10:23 AM, Sven Templin wrote:[color=green]
                      > > our configuration is as following described:
                      > >
                      > > - OS: Windows 2000
                      > > - Apache server 1.3
                      > > - Php 3.8
                      > > - MS outlook client 2000
                      > >
                      > > _and_ no SMTP server available in the whole intranet.
                      > >
                      > > We are looking for a php script for sending eMail with help of the
                      > > above named outlook client. Can somebody help?[/color]
                      >
                      > Under Windows without a SMTP server, only by sending messages directly
                      > to the recipient SMTP server. In that case you may want to try this
                      > class that can compose and send messages via SMTP and supports direct
                      > delivery.
                      >
                      > http://www.phpclasses.org/mimemessage
                      >
                      > You also need these:
                      >
                      > http://www.phpclasses.org/smtpclass
                      >
                      > http://www.phpclasses.org/phpresolver
                      >
                      > There is a simpler and much faster and safe way that I am testing but
                      > you need to have IIS mail server or Exchange on Windows 2000 or better.
                      > If you or anybody is interested in participating in the tests, just mail
                      > me privately.
                      >
                      > --
                      >
                      > Regards,
                      > Manuel Lemos
                      >
                      > PHP Classes - Free ready to use OOP components written in PHP
                      > http://www.phpclasses.org/
                      >
                      > PHP Reviews - Reviews of PHP books and other products
                      > http://www.phpclasses.org/reviews/
                      >
                      > Metastorage - Data object relational mapping layer generator
                      > http://www.meta-language.net/metastorage.html[/color]

                      Hello Manuel,

                      thanks for your posting. But above mentioned, the exchange server
                      inside the intranet does not listen on the smtp port. It is also
                      impossible to reach the smtp server outside the intranet. I am not
                      familiar with VBScript, because we are normally using Linux. We are
                      looking for a php script which starts an VBScript, which can use an
                      outlook client to forward eMails via M$ proprietary protocol. I would
                      not like to make an "M$ certified exchange server training" to solve
                      this problem... ;-)) And I do not know what tools I need to run
                      VBScript.

                      Thanks oncemore and bye,

                      Sven

                      Comment

                      • Sven Templin

                        #12
                        Re: Scrip for sending an eMail via PHP and Outlook

                        Manuel Lemos <mlemos@acm.org > wrote in message news:<41080B67. 706@acm.org>...[color=blue]
                        > Hello,
                        >
                        > On 07/28/2004 10:23 AM, Sven Templin wrote:[color=green]
                        > > our configuration is as following described:
                        > >
                        > > - OS: Windows 2000
                        > > - Apache server 1.3
                        > > - Php 3.8
                        > > - MS outlook client 2000
                        > >
                        > > _and_ no SMTP server available in the whole intranet.
                        > >
                        > > We are looking for a php script for sending eMail with help of the
                        > > above named outlook client. Can somebody help?[/color]
                        >
                        > Under Windows without a SMTP server, only by sending messages directly
                        > to the recipient SMTP server. In that case you may want to try this
                        > class that can compose and send messages via SMTP and supports direct
                        > delivery.
                        >
                        > http://www.phpclasses.org/mimemessage
                        >
                        > You also need these:
                        >
                        > http://www.phpclasses.org/smtpclass
                        >
                        > http://www.phpclasses.org/phpresolver
                        >
                        > There is a simpler and much faster and safe way that I am testing but
                        > you need to have IIS mail server or Exchange on Windows 2000 or better.
                        > If you or anybody is interested in participating in the tests, just mail
                        > me privately.
                        >
                        > --
                        >
                        > Regards,
                        > Manuel Lemos
                        >
                        > PHP Classes - Free ready to use OOP components written in PHP
                        > http://www.phpclasses.org/
                        >
                        > PHP Reviews - Reviews of PHP books and other products
                        > http://www.phpclasses.org/reviews/
                        >
                        > Metastorage - Data object relational mapping layer generator
                        > http://www.meta-language.net/metastorage.html[/color]

                        Hello Manuel,

                        thanks for your posting. But above mentioned, the exchange server
                        inside the intranet does not listen on the smtp port. It is also
                        impossible to reach the smtp server outside the intranet. I am not
                        familiar with VBScript, because we are normally using Linux. We are
                        looking for a php script which starts an VBScript, which can use an
                        outlook client to forward eMails via M$ proprietary protocol. I would
                        not like to make an "M$ certified exchange server training" to solve
                        this problem... ;-)) And I do not know what tools I need to run
                        VBScript.

                        Thanks oncemore and bye,

                        Sven

                        Comment

                        • Nikolai Chuvakhin

                          #13
                          Re: Scrip for sending an eMail via PHP and Outlook

                          sven.templin@gm x.net (Sven Templin) wrote in message
                          news:<120e075c. 0407282210.39ce 682c@posting.go ogle.com>...[color=blue]
                          >
                          > the exchange server inside the intranet does not listen
                          > on the smtp port. It is also impossible to reach the smtp
                          > server outside the intranet.[/color]

                          Then you need an Exchange client. I used to doubt if it was
                          possible to create one on a non-Microsoft platform, but Ximian
                          seems to have pulled it off with Evolution. An alternative is
                          to look for an ASP script on MSDN or simply tweak Outlook for
                          the Web.
                          [color=blue]
                          > I would not like to make an "M$ certified exchange server
                          > training" to solve this problem... ;-))[/color]

                          You'll pretty much have to. In order to use a protocol (any
                          protocol), you must understand how it works... You wouldn't
                          want to attempt writing a Webmail application unless you were
                          sufficiently familiar with POP/IMAP and SMTP, would you?
                          [color=blue]
                          > And I do not know what tools I need to run VBScript.[/color]

                          IIS will do.

                          Antway, it seems to me that you have two choices:

                          1. Develop a limited-functionality Exchange client in PHP
                          from scratch, or
                          2. Create a limited-functionality Exchange client using
                          MS-supplied ASP code.

                          In each case, you will have to understand how Exchange works,
                          but the first case will require much more profound understanding.

                          Cheers,
                          NC

                          Comment

                          • clippy the paperclip

                            #14
                            Re: Scrip for sending an eMail via PHP and Outlook

                            [color=blue]
                            >
                            > Thanks for your strong support! Yes, normally we are using SuSE Linux
                            > or Slackware with all the stuff (sendmail...), but now we are in a
                            > very restricted environment inside the intranet of an big automotive
                            > manufacturer.[/color]

                            if they dont allow you to use the tools to do your job , then whats the
                            point?

                            that's like being a car mechanic, but the garage is "restricted " so you cant
                            use a spanner.
                            [color=blue]
                            > And we have to use above named software. The exchange
                            > server, running somewere in the intranet, does not listen on smtp
                            > port, therefore I have to use the installed outlook client to forward
                            > eMails. It is also impossible to install my own pop3 mailserver,
                            > because all eMail clients have to be configured for the new pop3
                            > server.
                            >
                            > Bye, Sven[/color]

                            try using socket connections to talk to the exchange server directly.




                            Comment

                            • Manuel Lemos

                              #15
                              Re: Scrip for sending an eMail via PHP and Outlook

                              On 07/29/2004 03:09 AM, Sven Templin wrote:[color=blue][color=green][color=darkred]
                              >>>our configuration is as following described:
                              >>>
                              >>>- OS: Windows 2000
                              >>>- Apache server 1.3
                              >>>- Php 3.8
                              >>>- MS outlook client 2000
                              >>>
                              >>>_and_ no SMTP server available in the whole intranet.
                              >>>
                              >>>We are looking for a php script for sending eMail with help of the
                              >>>above named outlook client. Can somebody help?[/color]
                              >>
                              >>Under Windows without a SMTP server, only by sending messages directly
                              >>to the recipient SMTP server. In that case you may want to try this
                              >>class that can compose and send messages via SMTP and supports direct
                              >>delivery.
                              >>
                              >>http://www.phpclasses.org/mimemessage
                              >>
                              >>You also need these:
                              >>
                              >>http://www.phpclasses.org/smtpclass
                              >>
                              >>http://www.phpclasses.org/phpresolver
                              >>
                              >>There is a simpler and much faster and safe way that I am testing but
                              >>you need to have IIS mail server or Exchange on Windows 2000 or better.
                              >>If you or anybody is interested in participating in the tests, just mail
                              >>me privately.[/color][/color]
                              [color=blue]
                              > thanks for your posting. But above mentioned, the exchange server
                              > inside the intranet does not listen on the smtp port. It is also
                              > impossible to reach the smtp server outside the intranet. I am not
                              > familiar with VBScript, because we are normally using Linux. We are
                              > looking for a php script which starts an VBScript, which can use an
                              > outlook client to forward eMails via M$ proprietary protocol. I would
                              > not like to make an "M$ certified exchange server training" to solve
                              > this problem... ;-)) And I do not know what tools I need to run
                              > VBScript.[/color]

                              Sven, bear with me. You do not need a SMTP server to send messages. The
                              SMTP server is only needed to receive or relay messages.

                              The solution that my class implements does not require an SMTP server to
                              relay messages. I just sends the message directly to the recipient SMTP
                              server. This way it get away without the middle man SMTP server that you
                              said is not available. As long as your machine has direct access to the
                              Internet this works.

                              The other solution that I know would only work if you have access to the
                              file system of the machine where Exchange server is running. It needs to
                              be able to write message files to some mail drop directories. This
                              solution works but needs more testing. If you are interested, just mail
                              me privately so I can provide you a test version of the class above that
                              supports Exchange mail drops.

                              --

                              Regards,
                              Manuel Lemos

                              PHP Classes - Free ready to use OOP components written in PHP
                              http://www.phpclasses.org/

                              PHP Reviews - Reviews of PHP books and other products
                              http://www.phpclasses.org/reviews/

                              Metastorage - Data object relational mapping layer generator

                              Comment

                              Working...