Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Configures SMTP authentication
- add_action( 'phpmailer_init', 'send_smtp_email' );
- function send_smtp_email( $phpmailer ) {
- $phpmailer->isSMTP();
- $phpmailer->Host = SMTP_HOST;
- $phpmailer->SMTPAuth = SMTP_AUTH;
- $phpmailer->Port = SMTP_PORT;
- $phpmailer->Username = SMTP_USER;
- $phpmailer->Password = SMTP_PASS;
- $phpmailer->SMTPSecure = SMTP_SECURE;
- $phpmailer->From = SMTP_FROM;
- $phpmailer->FromName = SMTP_NAME;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement