WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/fix phpmailer messageid

This page is marked as incomplete. You can help Codex by expanding it.

Contents

Description

Correct From: host on outgoing email to match the site domain. It is just a wrapper function for:

$phpmailer->Hostname = $current_site->domain;

Usage

<?php fix_phpmailer_messageid$phpmailer ?>

Parameters

$phpmailer
(PHPMailer object) (required) outgoing email transport object
Default: None

Return Value

The PHPMailer object is modified directly, no value is returned.

Examples

fix_phpmailer_messageid( $phpmailer );

echo $phpmailer->Hostname;

Notes

  • Uses global $current_site.

Change Log

Since: MU (WordPress 3.0.0)

Source File

fix_phpmailer_messageid() is located in wp-includes/ms-functions.php

Related

See also index of Function Reference and index of Template Tags.