Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wpse81_phpmailer_init( PHPMailer $phpmailer ) {
- $phpmailer->IsSMTP();
- $phpmailer->Host = 'mail.website.com';
- $phpmailer->Port = 465; // could be different
- $phpmailer->Username = 'noreply@website.com'; // if required
- $phpmailer->Password = 'password'; // if required
- $phpmailer->SMTPAuth = true; // if required
- $phpmailer->SMTPSecure = 'ssl'; // enable if required, 'tls' is another possible value
- $phpmailer->From = "noreply@website.com";
- $phpmailer->FromName = "Noob";
- }
- add_action( 'phpmailer_init', 'wpse81_phpmailer_init' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement