(Turkish) RainTPL PHP Template Engine Kullanımı

(Turkish) Türkiye’de Bulunan Bankaların Listesi – JSON | Exel | PHP | SQL

Getting and Maintaining a MySQL Database Backup with PHP

(Turkish) Gümüş Takı Seti

Send mail with Yandex SMTP

PHP Programming Monday May 29th, 2017
2,537 Görüntülenme

A nice code you can use if you want to send mail with PHP using Yandex SMTP service.

  • First download the necessary libraries from here.
  • Include the mail folder in the RAR archive that you downloaded in the pro- cess.
  require_once "mail/PHPMailerAutoload.php";

  $mail = new PHPMailer();
  $mail->SMTPDebug = 1; 
  $mail->SMTPAuth = true;
  $mail->SMTPSecure = 'tls';
  $mail->Host = 'smtp.yandex.com';
  $mail->Port = 587;
  $mail->SetLanguage("tr", "phpmailer/language");
  $mail->CharSet ="utf-8";
  $mail->Username = "eMail Address"; 
  $mail->Password = "Password";
  $mail->SetFrom("Sender Mail Address", "Sender Name"); 
  $mail->AddAddress("Buyer Mail Address");
  $mail->Subject = "Topic title";
  $mail->Body = "Mail Content";




Henüz hiç yorum yapılmamış.

Benzer İçerikler