Advertisement
Guest User

Untitled

a guest
Jan 27th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. add_action( 'phpmailer_init', 'wpse8170_phpmailer_init',0 );
  2. function wpse8170_phpmailer_init( PHPMailer $phpmailer ) {
  3. $phpmailer->Host = 'your.smtp.server.here';
  4. $phpmailer->Port = 25; // could be different
  5. $phpmailer->Username = 'your_username@example.com'; // if required
  6. $phpmailer->Password = 'yourpassword'; // if required
  7. $phpmailer->SMTPAuth = true; // if required
  8. $phpmailer->SMTPSecure = 'ssl'; // enable if required, 'tls' is another possible value
  9.  
  10. $phpmailer->IsSMTP();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement