| @@ 283-293 (lines=11) @@ | ||
| 280 | * @param string $attachmentPath |
|
| 281 | * @param string|null $attachmentName |
|
| 282 | */ |
|
| 283 | public function addAttachment($attachmentPath, $attachmentName = null) |
|
| 284 | { |
|
| 285 | if (!isset($this->message['attachment'])) { |
|
| 286 | $this->message['attachment'] = []; |
|
| 287 | } |
|
| 288 | ||
| 289 | $this->message['attachment'][] = [ |
|
| 290 | 'filePath' => $attachmentPath, |
|
| 291 | 'remoteName' => $attachmentName, |
|
| 292 | ]; |
|
| 293 | } |
|
| 294 | ||
| 295 | /** |
|
| 296 | * @param string $inlineImagePath |
|
| @@ 299-309 (lines=11) @@ | ||
| 296 | * @param string $inlineImagePath |
|
| 297 | * @param string|null $inlineImageName |
|
| 298 | */ |
|
| 299 | public function addInlineImage($inlineImagePath, $inlineImageName = null) |
|
| 300 | { |
|
| 301 | if (!isset($this->message['inline'])) { |
|
| 302 | $this->message['inline'] = []; |
|
| 303 | } |
|
| 304 | ||
| 305 | $this->message['inline'][] = [ |
|
| 306 | 'filePath' => $inlineImagePath, |
|
| 307 | 'remoteName' => $inlineImageName, |
|
| 308 | ]; |
|
| 309 | } |
|
| 310 | ||
| 311 | /** |
|
| 312 | * @param bool $enabled |
|