Forum Moderators: coopster

Message Too Old, No Replies

PHP Mail problems

Mail arrives with most providers, but with some others it just disappears

         

wolligschaap

7:40 pm on Jul 30, 2004 (gmt 0)

10+ Year Member



When I started working with the PHP mail() function, I soon found out that some providers block the email when there are more than 1024 characters on one line. A simple
$message = wordwrap($message, 1024, '\r\n');
solved this. But now I found out some other providers that still don't let it through.

I now used the example that is on the php.net mail function page and still nothing. When I change the address of my provider to one of my own domains (on a different server too), it works, but as soon as I change it back to the address I got from my provider, nothing comes through.

Anyone else ever noticed this? Most of the time php.net has some useful visitor-comments but they are disabled right now, too bad!

bcolflesh

7:48 pm on Jul 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah, if the comments were there, you'd see ones about adding certain standard headers to the email - Hotmail is particularly strict about this - you need to add all the standard headers.

bcolflesh

7:51 pm on Jul 30, 2004 (gmt 0)

wolligschaap

8:14 pm on Jul 30, 2004 (gmt 0)

10+ Year Member



The strange thing is that hotmail works without a problem.

bcolflesh, thank you, this seems to be the exact same problem!

wolligschaap

3:26 pm on Aug 1, 2004 (gmt 0)

10+ Year Member



The solution: The "Received: from" contained my servername/domain, however, after the most recent reinstall I didn't create the domain in my DNS. When I did, it worked!