Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatthes committed Jul 9, 2020
1 parent 99b67f4 commit 772374d
Show file tree
Hide file tree
Showing 5 changed files with 238 additions and 246 deletions.
21 changes: 21 additions & 0 deletions README.md
Expand Up @@ -75,6 +75,16 @@ $mailer->textTemplate->textTemplateFunction();
```


## Sending mail without mailserver using SMTP

> This method is for testing only. Most Mailservers will
> reject mail transferred with this method.
```
```


## Demos

- [Basic/simple template sending mail](docs/simple-demo.php)
Expand All @@ -92,3 +102,14 @@ print_r ($phpmail);
$phpmail->Send();
```

## Intercepting outgoing mail

```php
$mailer->setSendMailFunction(function (PHPMailer $mail, PhoreMailer $phoreMailer) {
$res["to"] = $mail->getAllRecipientAddresses();
$res["subject"] = $mail->Subject;
$res["html"] = $mail->Body;
$res["text"] = $mail->AltBody;
});
```

0 comments on commit 772374d

Please sign in to comment.