Ejemplo n.º 1
0
 /**
  * Send a message using the given provider
  * @param MAIL_PROVIDER $provider
  * @param MAIL_MESSAGE $msg
  * @access private
  */
 public function send_mail($provider, $msg)
 {
     $msg->set_send_to($this->value_for('send_to'));
     $msg->send($provider);
 }
 /**
  * Send a message to the chosen recipients.
  * @param MAIL_PROVIDER $provider
  * @param MAIL_MESSAGE $msg
  * @access private
  */
 public function send_mail($provider, $msg)
 {
     if ($this->value_for('email_type') == 'single_mail') {
         $msg->set_send_to($this->recipient_list);
         $msg->send($provider);
     } else {
         foreach ($this->recipient_list as $email) {
             $msg->set_send_to($email);
             $msg->send($provider);
         }
     }
 }