Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP and email on my website

Status
Not open for further replies.

MHUK

Programmer
Joined
Nov 30, 2002
Messages
139
Location
GB
Hi
I am developing a basic website. I have created a form which a user enters data on, and then there is a submit button. What I am trying to achieve is a way of sending a page containing the data that the user has just entered on the form to three different email addresses, the person who has just entered that data, and to two other email addresses, all simultaneously. I can send the form data to one email address, but do not know a way to send the data to more than one email address simultaneously. Does anyone know if it is possible to do this? Any help with code will be really appreciated.

Thank you for any help.

MHUK
 
Blast. Hit "submit" instead of "preview".

That said, the problem is that mail headers like "CC:" or "BCC:" must be parsed by the mail client, not the mail server.

PHP versions 4.3 and newer knows what to do with these headers. If you add "CC:" or "BCC:" headers to the additional_headers parameter of the mail() function, PHP will know what to do with it.

I also highly recommend the PHP class PHPMailer ( It's a very good piece of code.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top