logicsound Posted June 22, 2010 Author Share Posted June 22, 2010 YES!!!!!! First one worked!!! one last final question. so this domain is hosted on a apache server that I have other domains on too. When you receive the email it shows it is from the main domain. (example [email protected] Can I specify in the code a reply address so it over writes the default hostname ? Link to comment https://forums.phpfreaks.com/topic/205564-add-cc-option-to-php-form/page/2/#findComment-1075768 Share on other sites More sharing options...
radar Posted June 22, 2010 Share Posted June 22, 2010 of course... you would do that with a reply-to header you would replace this: $mailhead .= "FROM: LOI\r\n"; $mailhead .= "CC: ".$email; with this: $mailhead .= "FROM: LOI\r\n"; $mailhead .= "Reply-To: [email protected]"."\r\n"; $mailhead .= "CC: ".$email; another way to do it is to do this $mailhead = "FROM: LOI<[email protected]>"."\r\n"; $mailhead .= "CC:".$email; Link to comment https://forums.phpfreaks.com/topic/205564-add-cc-option-to-php-form/page/2/#findComment-1075776 Share on other sites More sharing options...
logicsound Posted June 22, 2010 Author Share Posted June 22, 2010 ok the reply works. but when you recieve the email. it says from: [email protected] and not [email protected] Link to comment https://forums.phpfreaks.com/topic/205564-add-cc-option-to-php-form/page/2/#findComment-1075784 Share on other sites More sharing options...
radar Posted June 22, 2010 Share Posted June 22, 2010 try using the last one on my post just before this and that should be what you want it to be. Link to comment https://forums.phpfreaks.com/topic/205564-add-cc-option-to-php-form/page/2/#findComment-1075786 Share on other sites More sharing options...
logicsound Posted June 22, 2010 Author Share Posted June 22, 2010 YES!!!!!!!!!!!!!!!!!!! You are awesome!!! Thank you so much. everything is working perfect now. Does this forum have a post min before you can edit your post? I would like to remove the personal info now that we have it working Link to comment https://forums.phpfreaks.com/topic/205564-add-cc-option-to-php-form/page/2/#findComment-1075795 Share on other sites More sharing options...
radar Posted June 22, 2010 Share Posted June 22, 2010 I believe that as soon as another post is added you cant modify them. i have my personal information all over this forum, i dont get any unwanted emails so you should be fine. and this section goes so fast by tonight it'll be on like the 10th page. Link to comment https://forums.phpfreaks.com/topic/205564-add-cc-option-to-php-form/page/2/#findComment-1075798 Share on other sites More sharing options...
logicsound Posted June 22, 2010 Author Share Posted June 22, 2010 ok thanks again! you really saved the day! Link to comment https://forums.phpfreaks.com/topic/205564-add-cc-option-to-php-form/page/2/#findComment-1075800 Share on other sites More sharing options...
radar Posted June 22, 2010 Share Posted June 22, 2010 not a problem.. anytime you have any issues feel free to either pm me here or email me @ [email protected] Link to comment https://forums.phpfreaks.com/topic/205564-add-cc-option-to-php-form/page/2/#findComment-1075802 Share on other sites More sharing options...
logicsound Posted June 23, 2010 Author Share Posted June 23, 2010 just incase. How would I make this an option with a checkbox? I know how to create the checkbox but not how to link it to enable the email cc part Link to comment https://forums.phpfreaks.com/topic/205564-add-cc-option-to-php-form/page/2/#findComment-1075868 Share on other sites More sharing options...
radar Posted July 12, 2010 Share Posted July 12, 2010 ahh that is easy -- basically around your CC: email mail header, you would throw that inside of an if statement reading if the checkbox has been checked or not.. if its checked, CC it, if not -- dont Link to comment https://forums.phpfreaks.com/topic/205564-add-cc-option-to-php-form/page/2/#findComment-1085086 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.