wantabe2
asked on
PHP Code to Mail CC:
How would I add a courtesy copy CC: email address to this code? The variable for the email address is named $Email2
Below is the code I have now:
I've tried different variations such as putting the $Email2 in different locations. The email still sends but the subject line is the email address if I add the variable to as such:
if (mail($Email, $Email2, $Subject, $Message, $Headers))
I actually don't need it to CC:, if I could just fix it so the $Email2 is on the TO: line, that would also be fine.
Below is the code I have now:
if (mail($Email, $Subject, $Message, $Headers))
I've tried different variations such as putting the $Email2 in different locations. The email still sends but the subject line is the email address if I add the variable to as such:
if (mail($Email, $Email2, $Subject, $Message, $Headers))
I actually don't need it to CC:, if I could just fix it so the $Email2 is on the TO: line, that would also be fine.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER