PHPのメール送信、エンコード周りメモ

2022/06/25

fsockopen()

SSL対応でPOP3S指定する際は fsockopen() の第一引数にポート番号は不要

fsockopen(): Failed to enable crypto

mb_encode_mimeheader()

mb_convert_encoding()

Warning: mb_convert_encoding(): Illegal character encoding specified

Content-Transfer-Encoding

status=bounced (SMTPUTF8 is required, but was not offered by host XXXXX

status=bounced (SMTPUTF8 is required, but was not offered by host XXXXX

エンコーディングをUTF-8に。

Domain of sender address apache@hogehoge.localdomain does not exist

Domain of sender address apache@hogehoge.localdomain does not exist

第5引数に -fJOHNDOE@EXAMPLE.JP でメールアドレスを強制指定することで回避


Written by Circle
A mound built by the accumulation of hyperlinks are like Kowloon.