Miss-Ruth Posted October 29, 2009 Share Posted October 29, 2009 I need the TO: in email to display To: CEO instead of To: [email protected] How to alter the script below? <?PHP $to = "[email protected]"; $subject = "subject"; $headers = "From:" .$mail."\r\n"; $message = "Name: " . $name; Link to comment https://forums.phpfreaks.com/topic/179467-solved-email-form-syntax-issue/ Share on other sites More sharing options...
Bricktop Posted October 29, 2009 Share Posted October 29, 2009 Hi Miss-Ruth, Try the following: $to = "CEO <[email protected]>"; You still need to include the email address for the email to be able to send. Hope this helps. Link to comment https://forums.phpfreaks.com/topic/179467-solved-email-form-syntax-issue/#findComment-946888 Share on other sites More sharing options...
Miss-Ruth Posted October 29, 2009 Author Share Posted October 29, 2009 Works like a charm!!! Thanks Bricktop! <3 Link to comment https://forums.phpfreaks.com/topic/179467-solved-email-form-syntax-issue/#findComment-946892 Share on other sites More sharing options...
Miss-Ruth Posted October 29, 2009 Author Share Posted October 29, 2009 How to make this look FROM:"OUR TEAM" instead of FROM:[email protected] $headers = "From:" .$themail."\r\n"; Link to comment https://forums.phpfreaks.com/topic/179467-solved-email-form-syntax-issue/#findComment-946895 Share on other sites More sharing options...
cags Posted October 29, 2009 Share Posted October 29, 2009 Exactly the same format you used for $to except with the word From: infront of it... Link to comment https://forums.phpfreaks.com/topic/179467-solved-email-form-syntax-issue/#findComment-946976 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.