0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 10:02:14 +02:00

Support Ical in alt_attach MIME structure, see #175

This commit is contained in:
Marcus Bointon 2017-08-01 18:01:32 +02:00
parent c6e65069ad
commit 18263000c5
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24

View File

@ -2422,6 +2422,10 @@ class PHPMailer
$body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding);
$body .= $this->encodeString($this->Body, $bodyEncoding);
$body .= static::$LE;
if (!empty($this->Ical)) {
$body .= $this->getBoundary($this->boundary[2], '', 'text/calendar; method=REQUEST', '');
$body .= $this->encodeString($this->Ical, $this->Encoding);
}
$body .= $this->endBoundary($this->boundary[2]);
$body .= static::$LE;
$body .= $this->attachAll('attachment', $this->boundary[1]);