Guest User

Untitled

a guest
Jan 17th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. foreach($this->users as $v)
  2. {
  3. $this->phpmailer = new PHPMailer();
  4.  
  5. $this->phpmailer->IsSMTP();
  6. $this->phpmailer->SMTPAuth = true;
  7. $this->phpmailer->SMTPSecure = 'ssl';
  8.  
  9. $this->phpmailer->Host = 'smtp.gmail.com';
  10. $this->phpmailer->Port = 465;
  11.  
  12. $this->phpmailer->ClearAllRecipients();
  13. $this->phpmailer->AddAddress($v['email']);
  14.  
  15. $this->phpmailer->Username = $v['email_user'];
  16. $this->phpmailer->Password = $v['email_pass'];
  17.  
  18. $this->phpmailer->From = $v['email_user'];
  19. $this->phpmailer->FromName = $v['email_name'];
  20.  
  21. $this->phpmailer = new PHPMailer();
  22.  
  23. $this->phpmailer->IsSMTP();
  24. $this->phpmailer->SMTPAuth = true;
  25. $this->phpmailer->SMTPSecure = 'ssl';
  26.  
  27. $this->phpmailer->Host = 'smtp.gmail.com';
  28. $this->phpmailer->Port = 465;
  29.  
  30. foreach($this->users as $v)
  31. {
  32. $this->phpmailer->ClearAllRecipients();
  33. $this->phpmailer->AddAddress($v['email']);
  34.  
  35. $this->phpmailer->Username = $v['email_user'];
  36. $this->phpmailer->Password = $v['email_pass'];
  37.  
  38. $this->phpmailer->From = $v['email_user'];
  39. $this->phpmailer->FromName = $v['email_name'];
  40.  
  41. ...
Add Comment
Please, Sign In to add comment