0
이메일이 전송되지 않았습니다. MDaemon 설정이 완료되었지만 메일이 전송되지 않았으며 PHP 파일이나 다른 구성이 필요하지 않습니다. 완료되었습니다. MDeamoen 설정이 완료되었지만 메일이 전송되지 않았습니다. 무엇보다 나는 PHP에 새로운 오전 MDeamon 필요한
코드 :이메일을 보내지 못했습니다. mdaemon 설정이 완료되었지만 메일이 전송되지 않고 오류가 발생하지 않습니다. php 파일
// smtp domain name
ini_set("SMTP","48.48.48.250");
//sendmail path for sending email
ini_set("sendmail_path", "M:\MDaemon\App\MDaemon.exe\ -t -i");
// Please specify an SMTP Number 25 and 8889 are valid SMTP Ports.
ini_set("smtp_port","25");
// Please specify the return address to use
ini_set('sendmail_from', '[email protected]');
// multiple recipients
$to = '[email protected]' . ', '; // note the comma
$to .= '[email protected]';
// subject
$subject = 'Birthday Reminders for August';
// message
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: Mukesh <[email protected]>, Kelly <[email protected]>' . "\r\n";
$headers .= 'From: Birthday Reminder <[email protected]>' . "\r\n";
// Mail it
if(mail($to, $subject, $message, $headers))
{
echo 'Email sent successfully!';
}
else
{
die('Failure: Email was not sent!');
}
/* Code running properly and sent msg successfully but mail not sent if any idea about MDeamon or I have to other Configuration done on localhost that should be run properly and send mail success *?
로컬 호스트에서 메일을 보낼 때 제대로 보낸 메일보다 MDaemon 경로를 사용하는 경우에도 메시지가 전송되지 않은 경우 메일이 성공적으로 전송되었습니다. –