This topic is locked

Email

4/14/2008 8:59:03 AM
PHPRunner General questions
K
kklh author

Hi
What is the parameter to control the From field in email .
regs. Kim

J
Jane 4/14/2008

Kim,
to add From email use additional parameters for mail() function:

// Additional headers

$headers .= 'From: Anybody <test@example.com>' . "\r\n";
// Mail it

mail($email, $subject, $message, $headers);