Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function send_via_smtp( $phpmailer ) {
- $phpmailer->isSMTP();
- $phpmailer->SetFrom("[email protected]", "From Name");
- $phpmailer->AddReplyTo("[email protected]", "Reply-To Name");
- $phpmailer->Host = "smtp.domain.com";
- $phpmailer->SMTPAuth = true; // require smtp authentication?
- $phpmailer->SMTPSecure = true; // security protocol (true/false or "tls")
- $phpmailer->Port = 587; // port depends on security and server setup
- $phpmailer->Username = "[email protected]";
- $phpmailer->Password = "YOURPASSWORD";
- }
- add_action( "phpmailer_init", "send_via_smtp" );
Add Comment
Please, Sign In to add comment