Web Hosting Talk







View Full Version : Problem with php's mail() function


ChrisF79
03-30-2006, 03:52 PM
Greetings,

I'm trying to use mail() with a simple contact form. I have the following headers:

$headers* = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= 'From: '.$_POST[sendername].' <'.$_POST[senderemail].'>'."\n";
$headers .= 'Reply-To: '.$_POST[sendername].' <'.$_POST[senderemail].'>'."\n";
$headers .= 'Return-Path: '.$_POST[sendername].' <'.$_POST[senderemail].'>';

ChrisF79
03-30-2006, 04:00 PM
If it matters, I'm using Exim on Redhat Enterprise and Cpanel.

hixin
03-30-2006, 05:16 PM
try change all the ' to "

Dan Grossman
03-30-2006, 09:15 PM
None of his variables are inside the quotes, that won't matter. One important detail missing:

What's the problem?