Jump to content

PHP Email


jandrews3

Recommended Posts

The test emails I send with this script keep showing that they come from "jamesa3.com". While that is the site I'm sending from, I'm using what I thought were proper headers to make it show "[email protected]".

		$tom = $row['emailm'];
		$tof = $row['emailf'];
		$headers = "From: [email protected]\r\n" .
    						 "X-Mailer: php".
  						 "Return-Path: [email protected]\r\n";


		if (mail($tom, $subject, $message, $headers)){print "Sent to - ".$row['guardianm']." (".$row['lname'].", ".$row['fname'].")";}
		else {print "<b>MESSAGE DELIVERY FAILED FOR ".$tom;}

 

Link to comment
https://forums.phpfreaks.com/topic/118825-php-email/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.