| @@ 27-40 (lines=14) @@ | ||
| 24 | * Send a plain-text email. |
|
| 25 | * TestMailer will merely record that the email was asked to be sent, without sending anything. |
|
| 26 | */ |
|
| 27 | public function sendPlain($to, $from, $subject, $plainContent, $attachedFiles = false, $customHeaders = false) |
|
| 28 | { |
|
| 29 | $this->saveEmail(array( |
|
| 30 | 'Type' => 'plain', |
|
| 31 | 'To' => $to, |
|
| 32 | 'From' => $from, |
|
| 33 | 'Subject' => $subject, |
|
| 34 | 'Content' => $plainContent, |
|
| 35 | 'PlainContent' => $plainContent, |
|
| 36 | 'AttachedFiles' => $attachedFiles, |
|
| 37 | 'CustomHeaders' => $customHeaders, |
|
| 38 | )); |
|
| 39 | ||
| 40 | return true; |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| @@ 47-62 (lines=16) @@ | ||
| 44 | * Send a multi-part HTML email |
|
| 45 | * TestMailer will merely record that the email was asked to be sent, without sending anything. |
|
| 46 | */ |
|
| 47 | public function sendHTML( |
|
| 48 | $to, |
|
| 49 | $from, |
|
| 50 | $subject, |
|
| 51 | $htmlContent, |
|
| 52 | $attachedFiles = false, |
|
| 53 | $customHeaders = false, |
|
| 54 | $plainContent = false, |
|
| 55 | $inlineImages = false |
|
| 56 | ) { |
|
| 57 | ||
| 58 | $this->saveEmail(array( |
|
| 59 | 'Type' => 'html', |
|
| 60 | 'To' => $to, |
|
| 61 | 'From' => $from, |
|
| 62 | 'Subject' => $subject, |
|
| 63 | 'Content' => $htmlContent, |
|
| 64 | 'PlainContent' => $plainContent, |
|
| 65 | 'AttachedFiles' => $attachedFiles, |
|