Wordpress Phpmailer Config

[Solved] Wordpress Phpmailer Config | Php - Code Explorer | yomemimo.com
Question : wordpress PHPMailer config

Answered by : faiz-ahmad-dae

add_action( 'phpmailer_init', 'setup_phpmailer_init' );
function setup_phpmailer_init( $phpmailer ) { $phpmailer->Host = 'HOSTNAME'; // for example, smtp.mailtrap.io $phpmailer->Port = 587; // set the appropriate port: 465, 2525, etc. $phpmailer->Username = 'YOURUSERNAME'; // your SMTP username $phpmailer->Password = 'YOURPASSWORD'; // your SMTP password $phpmailer->SMTPAuth = true; $phpmailer->SMTPSecure = 'tls'; // preferable but optional $phpmailer->IsSMTP();

Source : https://mailtrap.io/blog/wordpress-smtp-settings/ | Last Update : Mon, 12 Jul 21

Answers related to wordpress phpmailer config

Code Explorer Popular Question For Php