까지 난 당신이 그래서 내가 이메일을
코드 보내 Gmail을 사용하면 코드 메신저를 게시 할 예정입니다 무슨 잘못 그래서 내가 볼 수있는 코드의 나머지 부분을 제공하지 않는 참조로 :
$sendmail = require_once('../lib/phpmailer/class.phpmailer.php');
include("../lib/phpmailer/class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
$mail = new PHPMailer();
$body = " Body Msg ";
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "smtp.gmail.com"; // sets the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "[email protected]"; // SMTP account username
$mail->Password = "pass"; // SMTP account password
$mail->SetFrom('$qemail', 'first name');
$mail->Subject = "hi name";
$mail->MsgHTML($body);
$address = "[email protected]";
$mail->AddAddress($address, "first name");
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
}
을
당신은 포함 기능과
안녕하세요. 이미 '관련'항목에 중복 된 항목이 많습니다. –
Gmail은 스팸으로 감지하고 있습니다 (특히 공유 호스팅 제공 업체에있는 경우). –
서버/PHP 설치가 mail() 함수의 사용을 지원합니까? 또한 스팸/정크 등을 확인 했습니까? –