Jump to content

simple email


user4fun

Recommended Posts

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

***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

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

<?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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...