jml3188
11-13-2004, 03:05 PM
I can't seem to figure out how to send a form submitted on a website to two e-mail addresses via a PHP sendmail script.
The current code for the send function looks like this, any ideas?
$sendemail = "address1@domain.ext";
shaka0070
11-14-2004, 07:10 AM
Seperate each mail address with a comma and use the php mail() function.
View www.php.net/mail for function documentation
brianoz
11-14-2004, 09:28 AM
If you really want to send mail from PHP, the best way to do it is via phpmailer, don't mess with mail(). phpmailer is a well-written class that allows you to do EVERYTHING you'd ever want to do - multiple To addresses, CC, Bcc, attachments, HTML and plain text - the lot, and it's completely, utterly free. sigh, I'm in love with it I think :)
http://phpmailer.sourceforge.net/
:auflag: :smash:
mental note: get out more :nuts:
talkwebhosts
11-14-2004, 09:36 AM
Are you able to post the rest of the script?
From what you posted you should be able to send to more than one email address by simply putting a comma between the two.