Can I specify multiple mail recipients?

NOTE: the premium version supports multiple recipients ‘out of the box’

It’s quite easy to have the e-mail go to multiple recipients.

If you’d like the mail to openly go to more than one recipient, i.e. you don’t mind each recipient seeing the e-mail address of the other recipients, then you can specify those e-mail addresses in $yourEmail like so:

$yourEmail = ","; // the email address you wish to receive these mails through

If, however, you’d like to ‘hide’ the recipients of the message, you need to send the mail to them as a “blind carbon copy”, using the Bcc command. Find:
$headers .= "Reply-To: {$_POST['email']}\r\n";
and after that line, add:
$headers .= "Bcc:\r\n";

where is the secondary recipient of the message.

You can specify multiple Bcc recipients by separating them with a comma:
$headers .= "Bcc:,\r\n";

Get Premium

All the great features of the free contact form, and more besides...

Buy Now - £19

  • UTF-8 support: ideal if you receive mails containing characters such as é, ó, ü and so on
  • Even more spam protection: take advantage of better functionality in newer versions of PHP
  • Repeat submission protection: stop people from submitting the form multiple times in a row
  • Read more about the premium mail form...