fix_phpmailer_messageid

函式
fix_phpmailer_messageid ( $phpmailer )
引數
  • (PHPMailer) $phpmailer The PHPMailer instance (passed by reference).
    Required:
定義位置
相關方法
is_email_address_unsafeget_header_imageheader_imageshow_messageupdate_right_now_message
引入
-
棄用
-

fix_phpmailer_messageid: 這個函式用來修復由PHPMailer庫生成的電子郵件ID。訊息ID是一個唯一的識別符號,用於跟蹤電子郵件,這個函式確保它的格式正確,不包含任何非法字元。

糾正外發郵件的發件人主機,使之與網站域名相匹配。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function fix_phpmailer_messageid( $phpmailer ) {
$phpmailer->Hostname = get_network()->domain;
}
function fix_phpmailer_messageid( $phpmailer ) { $phpmailer->Hostname = get_network()->domain; }
function fix_phpmailer_messageid( $phpmailer ) {
	$phpmailer->Hostname = get_network()->domain;
}

常見問題

FAQs
檢視更多 >