Advertisement
Guest User

Untitled

a guest
Aug 19th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. $headers = 'From: ' . $this->from_name . ' <' . $this->from_email .'>' . "rn";
  2. wp_mail( $service->getEmail(), $this->admin_daily_subject, $admin_daily_message, $headers );
  3.  
  4. $headers = 'From: ' . $this->from_name . ' <'.$this->from_email.'>' . "rn" .
  5. 'Reply-To: '.$this->from_email . "rn" .
  6. 'X-Mailer: PHP/' . phpversion() . "rn" .
  7. "Content-Type: text/html; charset=UTF-8";
  8. mail( $service->getEmail(), $this->admin_daily_subject, $admin_daily_message, $headers );
  9.  
  10. $phpmailer->setFrom( $from_email, $from_name );
  11.  
  12. $phpmailer->setFrom( $from_email, $from_name, false );
  13.  
  14. $phpmailer->IsSMTP();
  15. $phpmailer->Host = "smtp.example.com";
  16. $phpmailer->Port = <SMTP PORT>;
  17. $phpmailer->SMTPSecure = 'ssl'; //optional, can also be 'tls'
  18. $phpmailer->SMTPAuth = true;
  19. $phpmailer->Username = '<your smtp username>';
  20. $phpmailer->Password = '<your smtp password>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement