sflocation Posted March 24, 2010 Share Posted March 24, 2010 Hello, I have this script ... $headers = "From: \"$name\" <$fromemail>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . 'Cc: $copy' . $headersep . "X-Mailer: chfeedback.php 2.13.0" . $headersep . 'MIME-Version: 1.0' . $headersep . $content_type ; Were $copy = 'myemail' ; I am receiving the emails but on the Cc part is just saying "$copy". So I do not know what I am doing wrong. Thanks in advance Carlos Link to comment https://forums.phpfreaks.com/topic/196431-cc-not-working-wvariable-simple-contact-form/ Share on other sites More sharing options...
o3d Posted March 24, 2010 Share Posted March 24, 2010 The $copy is between single quotes (dumb quotes). Replace the single quotes with double quotes and it should work. 'Cc: $copy' to "Cc: $copy" Link to comment https://forums.phpfreaks.com/topic/196431-cc-not-working-wvariable-simple-contact-form/#findComment-1031359 Share on other sites More sharing options...
sflocation Posted March 25, 2010 Author Share Posted March 25, 2010 o3d, Thank you very much that worked very well. Thanks for taking the time to respond. Link to comment https://forums.phpfreaks.com/topic/196431-cc-not-working-wvariable-simple-contact-form/#findComment-1031394 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.