mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-25 20:36:01 +03:00
add attachment emails support
This commit is contained in:
parent
766db0ad3a
commit
de108c0e86
@ -444,7 +444,9 @@ class Message
|
|||||||
{
|
{
|
||||||
$parameters = self::getParametersFromStructure($structure);
|
$parameters = self::getParametersFromStructure($structure);
|
||||||
|
|
||||||
if (isset($parameters['name']) || isset($parameters['filename'])) {
|
if ((isset($parameters['name']) || isset($parameters['filename']))
|
||||||
|
|| (isset($structure->subtype) && strtolower($structure->subtype) == 'rfc822')
|
||||||
|
) {
|
||||||
$attachment = new Attachment($this, $structure, $partIdentifier);
|
$attachment = new Attachment($this, $structure, $partIdentifier);
|
||||||
$this->attachments[] = $attachment;
|
$this->attachments[] = $attachment;
|
||||||
} elseif ($structure->type == 0 || $structure->type == 1) {
|
} elseif ($structure->type == 0 || $structure->type == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user