You are here: Re: how to add CC & BCC to mailers? « PHP Programming Language « IT news, forums, messages
Re: how to add CC & BCC to mailers?

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация