Hi, I have a form to email working just fine, but I would like to send the form to two different emails. Any help please.
Thanks

Recommended Answers

All 3 Replies

Just edit your PHP script to send it to two destinations.
Normally you build up the message in steps from each field, so just add a bit for a cc as well or if you don't want to do that, repeat the entire code in the same script, but with a different destination.

the default for multiple addresses is separated by ; semicolon
try just editing the to: address address1;address2

Thanks guys, got it sorted. The problem was on the hosting server...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.