help w/ php mail()

mgrunk

Perch
I read in another thread:
If using php mail() function it wont deliver to any ISP's mailserver that requires rDNS.


none of my customer websites or mine can send email now - what should I replace it w/
 
I am not the greatest php programmer - I've looked at PHPMailer

but I don't know where the php include path is to copy:

"Copy class.phpmailer.php into your php.ini include_path. If you are using the SMTP mailer then place class.smtp.php in your path as well. If you do not have control of the include directory and you are running PHP 4.0 or higher you can use this function to set it to the correct directory: "

I have customers melting down right now.

I tried dealing w/ the headers per another message:

$to_email = "[email protected],".$from_email;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: php\r\n";
$headers .= "From: " . $from_email . "\r\n";
$headers .= "Reply-To: " . $from_email. "\r\n";
$returnValue = mail( $to_email, "Message from mydomain", $message, "From: $from_email" );
if($returnValue === true) echo 'Success!';
else echo 'Sending failed';

I get a successful message but no email
 
Ok I can use phpmailer but I am still not receiving messages from any of my websites - it does send a copy to the from_email so I know it's working.

I can't even check the webmail for any of my accounts - it's coming up website not found.

I am losing it.
 
PHP doesnt create envelope-sender/return-path correctly.
This causes such problems. PHPmailer or swiftmailer can do far better here.
 
Back
Top