php help

Out of context: Reply #10

  • Started
  • Last post
  • 10 Responses
  • section_0140

    An if statement? If anything I would fill an array with the e-mail addresses and loop through it. Like:

    $emailArray = array();

    //add emails
    $emailArray[] =
    $emailArray[] =
    $emailArray[] =

    //loop through emails and send
    foreach ($emailArray as $email)
    {
    //whatever your send method is
    $this->sendMail($email);
    }

View thread