czukoman20 Posted October 3, 2007 Share Posted October 3, 2007 mail($email, $subject, $message2, "From: $email2"); that is php for emailing someone. How do i add it soo it can have a title to the email Quote Link to comment https://forums.phpfreaks.com/topic/71604-e-mail-title/ Share on other sites More sharing options...
MadTechie Posted October 3, 2007 Share Posted October 3, 2007 i assume you mean a subject! Quote Link to comment https://forums.phpfreaks.com/topic/71604-e-mail-title/#findComment-360516 Share on other sites More sharing options...
belick Posted October 3, 2007 Share Posted October 3, 2007 <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> Quote Link to comment https://forums.phpfreaks.com/topic/71604-e-mail-title/#findComment-360566 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.