PDA

View Full Version : PHP mail function from Domain


bellsan
04-13-2007, 08:12 PM
I have a domain using a script to send a message to a forwarding email address which is not working. Here is the php mail command line:

$toaddr = "newclient@darshomvending.com";
$body = "A new client has requested your vending service. Please click this link to review your database for their information.\n\nOnce their information has been review, you must contact them for additional information.\n\nThank you,\n\n\n\nYour Web Administrator";
$headers = "From: DarShomVending\r\n";
mail($toaddr, "New Client Request", $body, $headers);

The email address should forward to the clients email address, but it does not. I did a test to have them forward the domain email address: newclient@darshomvending -> to my email address and nothing is being sent.
So I did a test and sent a message to directly to "newclient@darshomvending.com" and the message went thru with no problem.

Help! Client's forwarding is not working!

Bellsan

Jeremy
04-15-2007, 06:30 PM
Im not sure about the php script your running.

But check the mail logs when you click send.