user4fun Posted June 25, 2007 Share Posted June 25, 2007 i use the following to send emailsthe sender information is always webmaster@mydomain.cominstead of what the code has <?php $to = $Email; $from = "community@mydomain.com"; $title = "Confirmation Email";$body = <<< emailbodyTHE EMAIL INFORMATION.$emailbody; $success = mail($to,$from,$title,$body, "From:$from\r\nReply-To:community@mydomain.com");?>[\code]i need the sender infromation to be correct, not webmaster@mydomain.com Link to comment Share on other sites More sharing options...
MinusMyThoughts Posted June 25, 2007 Share Posted June 25, 2007 ***EDIT***My original code was wrong! Use this instead: $headers = "From: Mydomain Community <community@mydomain.com>\r\n";$headers .= 'Reply-To: Mydomain Community <community@mydomain.com>';$success = mail($to,$title,$body,$headers); -Jason Link to comment Share on other sites More sharing options...
user4fun Posted June 25, 2007 Author Share Posted June 25, 2007 something not working <?php $to = "info@mydomain.com"; $headers = "From: Mydomain Community <community@mydomain.com>\r\n";$headers .= 'Reply-To: Mydomain Community <community@mydomain.com>'; $title = "Confirmation Email";$body = <<< emailbody$Website confirmation.******************************Confirmation Number******************************Thank youemailbody;$success = mail($to,$title,$body,$headers);?></body></html> Link to comment Share on other sites More sharing options...
MinusMyThoughts Posted June 25, 2007 Share Posted June 25, 2007 <?php$to = $Email;$headers = "From: Mydomain Community <community@mydomain.com>\r\n";$headers .= 'Reply-To: Mydomain Community <community@mydomain.com>';$title = "Confirmation Email";$body = <<< emailbodyTHE EMAIL INFORMATION.$emailbody;$success = mail($to,$title,$body,$headers);?> -Jason Link to comment Share on other sites More sharing options...
user4fun Posted June 25, 2007 Author Share Posted June 25, 2007 what does this mean?$emailbody; Link to comment Share on other sites More sharing options...
user4fun Posted June 25, 2007 Author Share Posted June 25, 2007 got itTHANK YOU VERY MUCHI ogt ocnfused for a s ec, but i am good nowthank you again Link to comment Share on other sites More sharing options...
MinusMyThoughts Posted June 25, 2007 Share Posted June 25, 2007 Actually, you don't want the $ in front of email body. It's not necessary.Glad you figured it out!-Jason Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.