<body>
<?php
$thongbao = " Bạn Đã Gửi Bài Viết Thành Công ! Chân Thành Cám Ơn Sự Đóng Góp Của Bạn :)";
$hoanthanh = "";
if(isset($_post[send]))
(
include('mail/PHPMailerAutoload.php') //tham chiếu vào thư viện
$mail = new PHPMailer; // khởi tạo đối tượng **line 9**
$mail-> isSMTP();
$mail-> SMTPAuth = true;
$mail-> Host="tls://smtp.gmail.com:587";
$mail->Username = '[email protected]';
$mail->Password = '.......';
$mail->SMTPSecure = 'tls';// giao thức mã hóa khi gửi mail.
$mail->Port = 587;
$mail->isHTML(true);
$mail->SMTPDebug = 0;
$mail-> CharSet = "utf-8*";// trình duyệt hiển thị nội dung kỹ tự có dấu
$mail->setFrom($_post["email"]);
$mail->subject= $_post["tiêu đề"];
$mail->body= "<strong>nội dung</strong>";
$mail->addAddress('[email protected]', 'Diễm Trần');
if(!$mail->send())
{
echo "<p>Gửi Bài Không Thành Công !! </p>";
echo"mailer error: ".$mail->ErrorInFo;
else
{
$hoanthanh =$thongbao;
}
난 그냥 다음 github.com에 phpmailer의 libraby을 사용하여 연결 내 웹으로. 도와주세요.
전체 코드를 볼 수 있습니까? 그것의 불완전. –
[Parse error : PHP에서 구문 분석 오류] ([http://stackoverflow.com/questions/32678032/parse-error-parse-error-in-php] – Augwa
)의 가능한 복제본은 9 번째 줄에 있습니다. 거기에 세미 콜론이 없습니다. – Augwa