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:
parent
c6e65069ad
commit
18263000c5
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user