1
이것은 내 메일러의 $header
코드입니다.문자열에 PHP 변수가 없습니다.
$em
의 값을 from:<>
에 인쇄하고 싶지만 슬프게도 작동하지 않습니다.
나는 전문가 수준에서 PHP를 잘 알지 못하므로 친절하게도이 문제를 해결하고 왜 이런 일이 일어나고 있는지 알고 싶습니다.
$em="[email protected]";
// 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";
$headers .= "From: <$em>" . "\r\n";
echo $headers;
전류 출력 :
MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From:
예상 출력 :
MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From: <[email protected]>
'$ 플래그 = 메일 ($ $ 제목, $ 메시지, $ 헤더에이)'당신은 나의 메일이 작동하지 않습니다이 코드를 통해 찾아보세요 수 있습니다 –