Computing.Net > Forums > Web Development > php form

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

php form

Reply to Message Icon

Original Message
Name: BigShow
Date: July 20, 2006 at 16:16:20 Pacific
Subject: php form
OS: xp
CPU/Ram: pentium
Model/Manufacturer: dell
Comment:

Hey guys, I have an existing php form that runs fine but I was wondering if I can make it so when the submit button is pressed if it can go to 3 different email locations? A;most like "CC ing" someone


Report Offensive Message For Removal


Response Number 1
Name: Laler
Date: July 20, 2006 at 17:38:57 Pacific
Reply: (edit)

you need to find the mail() part in the script

it'll look like this:

mail ('targetmail', 'subject', 'content', 'additional_headers');

you can directly add another address in targetmail by using comma:

mail ('you@domain.com,anotheryou@domain.com', 'subject',...

if the targetmail is a variable, you might be able to slip it in like this:

mail ($targetmail . ',anotheryou@domain.com', subject,....

---


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 7 Days.
Discuss in The Lounge
Poll History




Data Recovery Software