나는 php 메일러 클래스를 사용하여 이메일을 보냈습니다. 메일이 성공적으로 전송되었지만 '로고 1'과 같은 메일 콘텐츠가 있습니다. 다음 코드를 사용하고 ... 아무도 내가이 당신이php 메일러를 사용하여 메일을 보내는 동안
$mail = new phpmailer();
$mail->IsHTML(true);
덕분 phpmailer 클래스의 객체를 생성 할 때
나는 php 메일러 클래스를 사용하여 이메일을 보냈습니다. 메일이 성공적으로 전송되었지만 '로고 1'과 같은 메일 콘텐츠가 있습니다. 다음 코드를 사용하고 ... 아무도 내가이 당신이php 메일러를 사용하여 메일을 보내는 동안
$mail = new phpmailer();
$mail->IsHTML(true);
덕분 phpmailer 클래스의 객체를 생성 할 때
대신 $mail_body = include_once('mail_content.php');
으로 작성하면 안됩니다.
include_once 'editors/tinymce.php';
$to = '[email protected]';
$frm = '[email protected]';
$sub = 'Weekly Working Report';
ob_start(); // start output buffering
include_once('mail_content.php');
$mail_body = ob_get_contents(); // get the contents from the buffer
ob_end_clean();
$mailstatus = l_mail('', '', $to, '', $frm, '', $sub, $mail_body);
if ($mailstatus == 'ok') {
echo '<center><font color=red style="font-size:14px">Message has been sent Succesfully.....!</font></center><br>';
} else {
echo $mailstatus;
}
sooo thank much ... :) – Natasha
$to = "[email protected]";
$subject = "Hey keep belief in me!";
$body = "Hi,\n\nHow are you?\n\n be good do good";
$header="[email protected]";
if (mail($to, $subject, $body, $header)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
도와주세요
는 아래의 코드를 사용하여 작동 희망
<?
include_once 'editors/tinymce.php';
$to = '[email protected]';
$frm = '[email protected]';
$sub = 'Weekly Working Report';
$mail_body = include_once('mail_content.php');
$mailstatus = l_mail('', '', $to, '', $frm, '', $sub, $mail_body);
if ($mailstatus == 'ok') {
echo '<center><font color=red style="font-size:14px">Message has been sent Succesfully.....!</font></center><br>';
} else {
echo $mailstatus;
}
?>
main_content.php의 내용은 무엇입니까? – Magic
이 댓글을 +1합니다. 메일이 올바르게 전송 된 경우 콘텐츠에 관한 문제입니다. html 헤더를 추가하는 것을 잊어 버린 경우에도 HTML 문제 일 수 있습니다. – haltabush