Connecting Tech Pros Worldwide Help | Site Map

PHP Mail not sending mail to itnernal email address

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:31 AM
Tanya
Guest
 
Posts: n/a
Default PHP Mail not sending mail to itnernal email address

Running a PHP mail script on Linux which has Exchange as the mail
server.
The script does not send mail to any internal email address but sends
it to any other address outside its domain!
Can somebody please help...

Thanks
Tanya
www.bluent.co.in

  #2  
Old July 17th, 2005, 12:31 AM
Manuel Lemos
Guest
 
Posts: n/a
Default Re: PHP Mail not sending mail to itnernal email address

Hello,

On 10/13/2003 03:29 AM, Tanya wrote:[color=blue]
> Running a PHP mail script on Linux which has Exchange as the mail
> server.
> The script does not send mail to any internal email address but sends
> it to any other address outside its domain!
> Can somebody please help...[/color]

If the message is not delivered, it is probably being rejected and you
should get a bounce in the return address.

If you do not get a bounce, maybe your Linux server is still retrying
and the message is trapped in a queue.

To analyse your problem and have a quick answer to what it can be, you
may want to try this class that comes with a wrapper function named
smtp_mail(). It emulates the mail() function so you can replace it
without further changes.

You just need to set it to direct delivery mode, so it tries to send to
your Exchange server immediately instead of leaving in your local queue.

If the message is rejected, you will get a self-explanatory error
message that can tell you what is going on.

http://www.phpclasses.org/mimemessage

You also need this:

http://www.phpclasses.org/smtpclass


--

Regards,
Manuel Lemos

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

  #3  
Old July 17th, 2005, 12:31 AM
Manuel Lemos
Guest
 
Posts: n/a
Default Re: PHP Mail not sending mail to itnernal email address

Hello,

On 10/13/2003 03:29 AM, Tanya wrote:[color=blue]
> Running a PHP mail script on Linux which has Exchange as the mail
> server.
> The script does not send mail to any internal email address but sends
> it to any other address outside its domain!
> Can somebody please help...[/color]

If the message is not delivered, it is probably being rejected and you
should get a bounce in the return address.

If you do not get a bounce, maybe your Linux server is still retrying
and the message is trapped in a queue.

To analyse your problem and have a quick answer to what it can be, you
may want to try this class that comes with a wrapper function named
smtp_mail(). It emulates the mail() function so you can replace it
without further changes.

You just need to set it to direct delivery mode, so it tries to send to
your Exchange server immediately instead of leaving in your local queue.

If the message is rejected, you will get a self-explanatory error
message that can tell you what is going on.

http://www.phpclasses.org/mimemessage

You also need this:

http://www.phpclasses.org/smtpclass


--

Regards,
Manuel Lemos

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.