mümkün.
öncelikle wp-config.php'de smtp sabitlerini tanımlarsınız:
define( 'SMTP_HOST', 'smtp.deneme.com' );
define( 'SMTP_USER', 'a@site.com' );
define( 'SMTP_PASS', 'sifre' );
/*
* port
* auth
* from
* vs.
*/
ardından
phpmailer_init kancasını functions.php'de kullanırsınız:
add_action( 'phpmailer_init', 'mail_ayar' );
function mail_ayar( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = SMTP_HOST;
$phpmailer->Username = SMTP_USER;
$phpmailer->Password = SMTP_PASS;
/*
* port
* auth
* from
* vs.
*/
}
çok teşekkür ederim ilginiz için