How to set each check box item go to different email address

the mail() function

Moderators: egami, macek, gesf

Post Reply
User avatar
New php-forum User
New php-forum User
Posts: 35
Joined: Thu Oct 27, 2011 1:24 pm

Wed Nov 02, 2011 6:22 am

Your code is too long dude, but from what you are asking for, I think this might help.

Once the user submits:

Code: Select all

  $emails = array();
    array_push($emails, 'email' => 'EMAIL FOR CHECKBOX 1');

// then to send them all just create a loop
foreach($emails as $mail)
    mail($mail[''email'], $subject, $message); //etc.

Now this is just an overview, as I am not quite sure of what you want.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 2 guests