Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($this->users as $v)
- {
- $this->phpmailer = new PHPMailer();
- $this->phpmailer->IsSMTP();
- $this->phpmailer->SMTPAuth = true;
- $this->phpmailer->SMTPSecure = 'ssl';
- $this->phpmailer->Host = 'smtp.gmail.com';
- $this->phpmailer->Port = 465;
- $this->phpmailer->ClearAllRecipients();
- $this->phpmailer->AddAddress($v['email']);
- $this->phpmailer->Username = $v['email_user'];
- $this->phpmailer->Password = $v['email_pass'];
- $this->phpmailer->From = $v['email_user'];
- $this->phpmailer->FromName = $v['email_name'];
- $this->phpmailer = new PHPMailer();
- $this->phpmailer->IsSMTP();
- $this->phpmailer->SMTPAuth = true;
- $this->phpmailer->SMTPSecure = 'ssl';
- $this->phpmailer->Host = 'smtp.gmail.com';
- $this->phpmailer->Port = 465;
- foreach($this->users as $v)
- {
- $this->phpmailer->ClearAllRecipients();
- $this->phpmailer->AddAddress($v['email']);
- $this->phpmailer->Username = $v['email_user'];
- $this->phpmailer->Password = $v['email_pass'];
- $this->phpmailer->From = $v['email_user'];
- $this->phpmailer->FromName = $v['email_name'];
- ...
Add Comment
Please, Sign In to add comment