Automatically inlines images and creates a plain-text version by converting the HTML,
overwriting any existing values in Body and AltBody.
$basedir is used when handling relative image paths, e.g.
will look for an image file in $basedir/images/a.png and convert it to inline.
If you don't want to apply these transformations to your HTML, just set Body and AltBody yourself.
public msgHTML ( string $message, string $basedir = '', boolean | callable $advanced = false ) : string | ||
$message | string | HTML message string |
$basedir | string | base directory for relative paths to images |
$advanced | boolean | callable | Whether to use the internal HTML to text converter or your own custom converter @see PHPMailer::html2text() |
return | string | $message The transformed message Body |