<?php require_once('class.phpmailer.php'); $mail = new PHPMailer(); $mail->IsHTML(true); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = ""; $mail->Host = "smtp.sendgrid.net"; $mail->Port = 25; $mail->Username = "[email protected]"; $mail->Password = "ezvye5"; $mail->From = "[email protected]"; $mail->FromName = "Mr.Weerachai Nukitram"; $mail->Subject = "Test sending mail."; $mail->Body = "My Body & <b>My Description</b>"; $mail->AddAddress("[email protected]", "Mr.Adisorn Boonsong"); // to Address $mail->Send(); ?>
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท