Eklenti ile uğraşmayın hocam hiç.
wp-config.php dosyasında
/* Add any custom values between this line and the "stop editing" line. */
/* That's all, stop editing! Happy publishing. */
-- Bu satırlar arasına aşağıdaki kodu düzenleyip ekleyin.
define( 'SMTP_username', 'XXX' ); // mail adresi
define( 'SMTP_password', 'XXX' ); // mail şifre
define( 'SMTP_server', 'XXX' ); // Mail server
define( 'SMTP_FROM', 'XXX' ); // mail adresi
define( 'SMTP_NAME', 'XXX' ); // Ayar isim
define( 'SMTP_PORT', 'XXX' ); // Port
define( 'SMTP_SECURE', 'ssl' ); // ssl&tls
define( 'SMTP_AUTH', true ); // true&false
define( 'SMTP_DEBUG', 0 ); // 0&1
Sonra aktif temanızın functions.php dosyasına aşağıdaki kodu aynı şekilde ekleyin.
add_action( 'phpmailer_init', 'my_phpmailer_smtp' );
function my_phpmailer_smtp( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = SMTP_server;
$phpmailer->SMTPAuth = SMTP_AUTH;
$phpmailer->Port = SMTP_PORT;
$phpmailer->Username = SMTP_username;
$phpmailer->Password = SMTP_password;
$phpmailer->SMTPSecure = SMTP_SECURE;
$phpmailer->From = SMTP_FROM;
$phpmailer->FromName = SMTP_NAME;
}