I have a form . When people submit the form , I want to have a copy of the contents to to two different email addresses and the submitter.
I want to copy three people. The one who submitted the form, and two other people.
How do I do that.
Thank you.
IanKelley
10:55 pm on Jan 3, 2004 (gmt 0)
You need to use server side scripting such as PHP or Perl.
krikri
12:15 am on Jan 4, 2004 (gmt 0)
Yes, I can do that. But what script should I use to make copies to other email addresses. I can set up a server side script to send to one email only.
IanKelley
12:18 am on Jan 4, 2004 (gmt 0)
There are various ways to do it.
The simplest if you are new to programming is to run the routine that sends the email multiple times giving it a different email address each time.
Alternatively you could add a CC or BCC header to the email.
krikri
1:48 am on Jan 4, 2004 (gmt 0)
Ian, thanks for the response. I never thought of that. I will use that method for my cc. But Iam, can you show me how to use the CC in the email header as I may one day have to send about 10 copies and I may find it incovenient using the multiple routine style. Thank you.
IanKelley
8:21 pm on Jan 4, 2004 (gmt 0)
It depends on which language you're using.
If it's PHP and it's built in mail function, the 4th argument contains additional headers.
You would add the following to it: CC: email@addy.com,email2@addy@.com\r\n