Etiket arşivi: uzak mail gönderme

PHP ile MAİL GÖNDERME CLASS (phpmailer)

ornek.php

<?php
include(“class.phpmailer.php”);

$mail = new PHPMailer();
$mail->IsSMTP();
$mail->From = ‘user@mandalina.biz';
$mail->FromName = “MEHMET MUTLU”;
$mail->Host = “mail.mandalina.biz”;
$mail->SMTPAuth = “true”;
$mail->Username = “user@mandalina.biz”;
$mail->Password = “şifre”;
$mail->Mailer = “smtp”;
$mail->Port = 587;
$mail->IsHTML(true);
$mail->SMTPDebug = false;
$mail->Subject = “test email konusu”;
$mail->Body = “test email metni”;
$mail->AddAddress(“info@mehmetmutlu.com.tr”);
$mail->AddCustomHeader(“Content-Type: text/html; charset=utf-8\n”);

if(!$mail->Send()){
echo “Hata mesajiniz iletilemedi!”;
}else{
echo “Mesajiniz Iletildi!”;
}
?>

ÖRNEK İÇİN

http://www.mehmetmutlu.com.tr/wp-content/uploads/2010/07/php_email_gonderme_class.rar