View Single Post
  #14 (permalink)  
Old 05-14-2008, 03:26 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,633
Last Blog:
Passwords
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John
Default Re: Mailing Question

Quote:
Originally Posted by TcM View Post
I have my email stored as a variable in the admin panel. how do I include the -f if I will use the variable? And isn't that the from field?
I overlooked something, what is send_mail()? Is that a function defined by you? The mail() function accepts 5 parameters to, subject, message, headers, and send_mail parameters. The 4th parameter (the headers) is where you define the "From", using the 5th parameter with the -f argument, you can define "mailed-from."

PHP Code:
$to      'John@codecall.net';
$subject 'Hey';
$message 'Hello John, Welcome to CodeCall!';
$headers 'From: tcm@gmail.com' "\r\n" .
    
'Reply-To: tcm@gmail.com' "\r\n";

mail($to$subject$message$headers'-f{$email}'); 
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall

Last edited by John; 05-14-2008 at 03:35 PM.
Reply With Quote