Submit form to multiple emails using a PHP form

Discussion in 'Web Design and Hosting' started by suforum, Jul 26, 2008.

  1. suforum

    suforum New Member

    Hi guys,

    I would just like to know how to beable to submit a form to 2 email addresses.
    I am using a .php form and this is how my html coding goes with a single email address:

    $to = "address@email.com";
    $from = $_POST['email'];
    $subject = "Website Enquiry";

    Let me know, thanks!

    [Links removed - Admin]
     
  2. Vishal P. Rao

    Vishal P. Rao Administrator Staff Member

    Separating email address with comma in the $to field should do the trick I believe.

    $to = "address1@email.com, address2@email.com";
     

Share This Page