Posted by Kelv on 08/25/05 05:06
Larry wrote:
> I found this basic PHP mailer with file attachment capability. It
> works just fine, but I want to add a CC: and BCC: to its output. I
> added the $cc & $bcc variables below, but unsure how to implement the
> rest. Can someone please help? Thank you - LM
Apologies if this is already on your to-do list, but you're going to
want to make some changes to that code if it's going to be publicly
accessible. If not expect the spammers to take full advantage of it.
They will.
> <html>
> <head>
> <title> Sending Email </title>
> </head>
> <body>
> <?php
> // Read POST request params into global vars
> $to = $_POST['to'];
> $from = $_POST['from'];
> $subject = $_POST['subject'];
> $message = $_POST['message'];
>
> $cc = $_POST['cc'];
> $bcc = $_POST['bcc'];
<snip>
Kelv
--
LoHost
http://www.lohost.com
Navigation:
[Reply to this message]
|