Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. add_action( 'phpmailer_init', 'my_phpmailer_example' );
  2. function my_phpmailer_example( $phpmailer ) {
  3. $phpmailer->isSMTP();
  4. $phpmailer->Host = 'smtp.example.com';
  5. $phpmailer->SMTPAuth = true; // Force it to use Username and Password to authenticate
  6. $phpmailer->Port = 25;
  7. $phpmailer->Username = 'yourusername';
  8. $phpmailer->Password = 'yourpassword';
  9.  
  10. // Additional settings…
  11. //$phpmailer->SMTPSecure = "tls"; // Choose SSL or TLS, if necessary for your server
  12. //$phpmailer->From = "you@yourdomail.com";
  13. //$phpmailer->FromName = "Your Name";
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement