Guest User

Untitled

a guest
Jul 13th, 2018
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. function send_via_smtp( $phpmailer ) {
  2. $phpmailer->isSMTP();
  3. $phpmailer->SetFrom("[email protected]", "From Name");
  4. $phpmailer->AddReplyTo("[email protected]", "Reply-To Name");
  5. $phpmailer->Host = "smtp.domain.com";
  6. $phpmailer->SMTPAuth = true; // require smtp authentication?
  7. $phpmailer->SMTPSecure = true; // security protocol (true/false or "tls")
  8. $phpmailer->Port = 587; // port depends on security and server setup
  9. $phpmailer->Username = "[email protected]";
  10. $phpmailer->Password = "YOURPASSWORD";
  11. }
  12. add_action( "phpmailer_init", "send_via_smtp" );
Add Comment
Please, Sign In to add comment