Miss-Ruth Posted October 29, 2009 Share Posted October 29, 2009 I need the TO: in email to display To: CEO instead of To: abc@mail.com How to alter the script below? <?PHP $to = "abc@mail.com"; $subject = "subject"; $headers = "From:" .$mail."\r\n"; $message = "Name: " . $name; Quote 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 <abc@mail.com>"; You still need to include the email address for the email to be able to send. Hope this helps. Quote 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 Quote 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:abc@mail.com $headers = "From:" .$themail."\r\n"; Quote 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... Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.