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