|
Posted by Gordon Burditt on 10/26/06 11:36
>Hi, I'm an html-guy getting his feet wet in PHP.
>I DL'd a simple server-side mail script from the 'net and have been trying
>to modify it so it includes a CC and BCC function.
>
>the form page contained "to", "name", "from" and "subject" input fields; I
>added "CC" and "BCC" inputs, hoping that PHP would say, "ah, yes, indeed..."
>But no luck.
>
>I've pasted the main form-page code and the main form-processor code below;
>if it's at all possible to include CC and BCC functions in PHP mailers, can
>anyone help me with this?
Headers go at the beginning of the message, not the end.
Note that it's imperative that you not permit *ANY* user-entered
data to go in any headers (including To:, From:, Subject:, Cc:, and
Bcc:) unless you have checked that this data does not contain
carriage return or line feeds. If you see this in the data, don't
send the mail (and don't fix it, either). Otherwise your form will
be abused by spammers.
[Back to original message]
|