From Buğra Özkan, 10 Months ago, written in PHP.
Embed
  1. if ($ihbar->rowCount()==1) {
  2. require("class.phpmailer.php");
  3. $mail = new PHPMailer();
  4. $mail->IsSMTP();
  5. $mail->SMTPDebug = 1;
  6. $mail->SMTPAuth = true;
  7. $mail->SMTPSecure = 'ssl';
  8. $mail->Host = "mail.bugraozkan.com.tr";
  9. $mail->Port = 465;
  10. $mail->IsHTML(true);
  11. $mail->SetLanguage("tr", "phpmailer/language");
  12. $mail->CharSet  ="utf-8";
  13. $mail->Username = "admin@bugraozkan.com.tr";
  14. $mail->Password = "sifre";
  15. $mail->SetFrom("admin@bugraozkan.com.tr", "Buğra Özkan");
  16. $mail->AddAddress("mail@gmail.com");
  17. $mail->Subject = "Mesaj Basligi";
  18. $mail->Body = "Mesaj icerigi ve metni";
  19. $mail->Send();
  20. }