메일 보낼때 header에 from이 추가되면 에러;;
안녕하세요~
php로 send() 실행시에 문제가 발생하는데요.
증상은 다음과 같습니다.
mail( 'hklee@xxx.co.kr', 'subject', 'test' );
헤더를 빼고 다음과 같이 보내면 daemon 이란 이름으로 잘 보내집니다.
하지만...
mail( 'hklee@xxx.co.kr', 'subject', 'test', 'from: from@xxx.co.kr' )
이렇게 헤더에 란 문구가 추가되면 메일이 오지 않습니다.
나머지 부가적으로 추가할 수 있는 header 들은 잘 전달이 되지만 그 역시 문구가 추가되면
전달이 되지 않습니다.
- maillog 내용입니다. -
Feb 18 09:02:33 localhost sendmail[16155]: o1I02XZE016155: from=daemon, size=73, class=0, nrcpts=1, msgid=<201002180002.o1I02XZE016155@ns1.xxx.co.kr>, relay=daemon@localhost
Feb 18 09:02:34 localhost sendmail[16156]: o1I02XJo016156: from=, size=306, class=0, nrcpts=1, msgid=<201002180002.o1I02XZE016155@ns1.xxx.co.kr>, proto=
ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Feb 18 09:02:34 localhost sendmail[16155]: o1I02XZE016155: to=hklee@xxx.co.kr, ctladdr=daemon (2/2), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30073, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o1I02XJo016156 Message accepted for delivery)
Feb 18 09:02:34 localhost sendmail[16158]: o1I02XJo016156: to=, ctladdr= (2/2), delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=1203
06, relay=mail.xxx.co.kr. [61.109.252.154], dsn=2.0.0, stat=Sent (ok 1266451353 qp 15719)
헤더에 from 이 추가되면 어떤 이유 때문에 메일이 오지 않을까요???
답변 부탁드려요 ㅠ
댓글 달기