Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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,....

![]() |
Question about whois data...
|
Netscape 8.1 problems
|

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