472,328 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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
Jul 17 '05 #1
15 4122
Sven Templin wrote:
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?


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?

Jul 17 '05 #2
Sven Templin wrote:
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


install Mandrake on the box.

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

problem solved.

Jul 17 '05 #3
>>
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.


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 ;->
Jul 17 '05 #4
Kevin Thorpe wrote:

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.


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 ;->


ha ha! .... good post!

;-)

Jul 17 '05 #5
Hello,

On 07/28/2004 10:23 AM, Sven Templin wrote:
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?


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
Jul 17 '05 #6
Hello,

On 07/28/2004 10:23 AM, Sven Templin wrote:
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?


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
Jul 17 '05 #7

"Kevin Thorpe" <ke***@pricetrak.com> wrote in message
news:41***********************@news.easynet.co.uk. ..
Sven Templin wrote:
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?


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?


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.
Jul 17 '05 #8
sv**********@gmx.net (Sven Templin) wrote in message
news:<12**************************@posting.google. com>...

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?


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
Jul 17 '05 #9
clippy the paperclip <bi********@microsoft.com> wrote in message news:<41***********************@news.easynet.co.uk >...
Kevin Thorpe wrote:

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.


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 ;->


ha ha! .... good post!

;-)


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
Jul 17 '05 #10
Manuel Lemos <ml****@acm.org> wrote in message news:<41**********@acm.org>...
Hello,

On 07/28/2004 10:23 AM, Sven Templin wrote:
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?


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


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
Jul 17 '05 #11
Manuel Lemos <ml****@acm.org> wrote in message news:<41**********@acm.org>...
Hello,

On 07/28/2004 10:23 AM, Sven Templin wrote:
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?


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


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
Jul 17 '05 #12
sv**********@gmx.net (Sven Templin) wrote in message
news:<12**************************@posting.google. com>...

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.
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.
I would not like to make an "M$ certified exchange server
training" to solve this problem... ;-))
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?
And I do not know what tools I need to run VBScript.


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
Jul 17 '05 #13

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.
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.
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


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


Jul 17 '05 #14
On 07/29/2004 03:09 AM, Sven Templin wrote:
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?
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.

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.


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
http://www.meta-language.net/metastorage.html
Jul 17 '05 #15

"Chung Leong" <ch***********@hotmail.com> wrote in message
news:-e********************@comcast.com...

"Kevin Thorpe" <ke***@pricetrak.com> wrote in message
news:41***********************@news.easynet.co.uk. ..
Sven Templin wrote:
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?
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?


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.


Easy enough to do, here is the Perl equvilent:-
#!c:\\perl\\bin\\perl

use strict;

use Win32::OLE;

use Win32::OLE::Const 'Microsoft Outlook';

my $Outlook = Win32::OLE->new('Outlook.Application', '');

my $ol = Win32::OLE::Const->Load($Outlook);

my $namespace = $Outlook->GetNamespace("MAPI");

my $mailitem = $Outlook->CreateItem(olMailItem);

my $reciptient = $mailitem->Recipients->Add("invalid\@example.com");

my $attachments = $mailitem->{"attachments"};

my $attachment = $attachments->Add("c:\\perl\\progs\\outlook.pl");

$mailitem->{"subject"} = "Test Perl OLE";

$mailitem->{"body"} = "You are clever - now with attachments";

$mailitem->send();
Jul 17 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: joe215 | last post by:
I want my users to send emails from a Windows app that I am developing in Visual Basic.NET 2003. I found a good example of sending email to a SMTP...
1
by: Devonish | last post by:
I am composing an email with Access VB and then sending it from within Access. Everything works correctly (the email actually goes!) but Outlook...
17
by: Bonj | last post by:
Right guys. (I would like a solution to this in VB6 as this is what our needy app is written in, but any solutions that involve .NET would be...
8
by: Frank | last post by:
I think I've confused myself completely here :-) I have used System.Web.Mail, but am not sure if this works with Exchange Server 5.5. I asked the...
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does...
7
by: Paridevi | last post by:
Hai , i want to send email in .Net Using OutLook Express,My Project is Web Application using vb.Net 2003 with SQL Server 2000.I have...
4
by: infomage27 | last post by:
I have tried scripting this with rules and VBA, now trying with C# but still failing. (code is exploratory, so please excuse the terribleness) ...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.