Forum Moderators: coopster

Message Too Old, No Replies

PHP mail function and MS Exchange

         

arturito

12:25 pm on Jul 11, 2009 (gmt 0)

10+ Year Member



I'm using the script below:

[2] 
to = $_POST['email'];
$subject = "Hello there"; $message = "My message here";
$headers = "From: Activation <activation@mydomain.com> \r\n";
$headers.= "X-Mailer: PHP 4.x";
mail($to, $subject, $message, $headers);
[/2]

... and for some reason the message does not arrive to the recipient on MS Exchange but it does to google, yahoo, hotmail accounts.
I have checked SMTP log on Exchange and it shows absolutely nothing. I have also set the anti-spam (Sophos Pure Message) to quarantine all spam and it also shows nothing.

Anyone else had similar problem?

NomikOS

3:04 am on Jul 12, 2009 (gmt 0)

10+ Year Member



seems Ok...

if you are in localhost: check that your sendmail (or what ever) config is Ok

check that addslashes($string)

and yes: probably spam is rejecting you
always happwens when we are testing.

hopefully help

arturito

7:55 pm on Jul 13, 2009 (gmt 0)

10+ Year Member



Thanks for your reply!

Well there is nothing wrong with the script and also nothing wrong with ms exchange. It was an interesting cock up by my hosting company.

I forgot about the fact that I had ssh access, so when I fired mail command I got this:

Insufficient disk space; try again later
Insufficient disk space; try again later
returntosender: cannot select queue for #*$!#*$!
Insufficient disk space; try again later
returntosender: cannot select queue for postmaster
queueup: cannot create queue file qfn6DBBVdc017115, euid=345056, fd=-1, fp=0x0: No space left on device

LOL. The odd thing is that it works for yahoo, google and hotmail when I'm using my php driven form! :-)

NomikOS

2:37 am on Jul 15, 2009 (gmt 0)

10+ Year Member



terrific!

just few days ago i was stuck when running a curl-php script.

testing...
testing...
testing...

and

testing...
testing...
testing...

by chance I discovered that was because my partition for web developing /var/www was left 0b.

and therefore could not modify a cookie file in /var/www/html/tmp/cookies

is something we must take into account