Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // temamızın functions.php dosyasına bitiş kodu ?> 'dan önce bu kodları ekliyoruz ve SMTP bilgilerimizi giriyoruz.
- add_action('phpmailer_init','send_smtp_email');
- function send_smtp_email( $phpmailer )
- {
- // SMTP ile mail yollatıyoruz
- $phpmailer->isSMTP();
- // SMTP Sunucu adresiniz
- $phpmailer->Host = "mail.smtpsunucu.com";
- // true yada false true olarak kalabilir
- $phpmailer->SMTPAuth = true;
- // SMTP port numarası - genellikle 25, 465 yada 587 oluyor
- $phpmailer->Port = "587";
- // SMTP kullanıcı adınız
- // SMTP şifreniz
- $phpmailer->Password = "şifre";
- // Şifreleme kullanıyor musunuz? - ssl yada tls tls kalmasını öneririm.
- $phpmailer->SMTPSecure = "tls";
- $phpmailer->From = "YOLLAYAN MAIL";
- $phpmailer->FromName = "YOLLAYANIN İSMİ";
- }
Advertisement
Add Comment
Please, Sign In to add comment