1. Home
  2. Docs
  3. mail
  4. WordPress SMTP integration with Site Age Mail

WordPress SMTP integration with Site Age Mail

WordPress SMTP integration with Site Age Mail

you need to add this code in your functions.php WP theme.

// Siteage, LLC SMTP setting for WP
add_action( 'phpmailer_init', 'setup_phpmailer_init' );
function setup_phpmailer_init( PHPMailer $phpmailer ) {
$phpmailer->Host = 'mail.siteage.net';
$phpmailer->Port = 587;
$phpmailer->Username = 'email-address'; // here your email
$phpmailer->Password = 'email-password'; // here your email passsword
$phpmailer->SMTPAuth = true;
$phpmailer->SMTPSecure = 'tls';
$phpmailer->IsSMTP();
}