@@ -69,22 +69,22 @@ |
||
69 | 69 | // Attachments |
70 | 70 | foreach ((array)$envelope->getAttachments() as $name => $value) { |
71 | 71 | switch ($value['disposition']) { |
72 | - case 'attachment': |
|
73 | - $mail->addAttachment( |
|
74 | - $value['content'], |
|
75 | - $name, |
|
76 | - 'base64', |
|
77 | - $value['content-type'], |
|
78 | - 'attachment' |
|
79 | - ); |
|
80 | - break; |
|
81 | - |
|
82 | - case 'inline': |
|
83 | - $mail->addEmbeddedImage($value['content'], $name, $name, 'base64', $value['content-type']); |
|
84 | - break; |
|
85 | - |
|
86 | - default: |
|
87 | - throw new \InvalidArgumentException('Invalid attachment type'); |
|
72 | + case 'attachment': |
|
73 | + $mail->addAttachment( |
|
74 | + $value['content'], |
|
75 | + $name, |
|
76 | + 'base64', |
|
77 | + $value['content-type'], |
|
78 | + 'attachment' |
|
79 | + ); |
|
80 | + break; |
|
81 | + |
|
82 | + case 'inline': |
|
83 | + $mail->addEmbeddedImage($value['content'], $name, $name, 'base64', $value['content-type']); |
|
84 | + break; |
|
85 | + |
|
86 | + default: |
|
87 | + throw new \InvalidArgumentException('Invalid attachment type'); |
|
88 | 88 | } |
89 | 89 | } |
90 | 90 |