fix_phpmailer_messageid()
Corrects From host on outgoing mail to match the site domain.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
fix_phpmailer_messageid( $phpmailer );
- $phpmailer(PHPMailer\PHPMailer\PHPMailer) (обязательный)
- The PHPMailer instance (passed by reference).
Список изменений
| С версии 3.0.0 | Введена. |
Код fix_phpmailer_messageid() fix phpmailer messageid WP 7.0
function fix_phpmailer_messageid( $phpmailer ) {
$phpmailer->Hostname = get_network()->domain;
}