mailer
mailer copied to clipboard
Generic mailer
| Q | A | ------------- | --- | Is bugfix? | ❌ | New feature? | ✔️ | Breaks BC? | ❌ https://github.com/yiisoft/yii-dev-panel/pull/60
| Q | A | ------------- | --- | Is bugfix? | ❌ | New feature? | ✔️ | Breaks BC? | ✔️
Currently, `MessageInterface::getHeaders()` doesn't have phpdoc. We should add it. Also, it may return `null` which means "do not add headers". An empty array could be possibly used for the same...
```php $html = preg_replace('~]*>.*?~is', '', $html); // ... // Does it make sense to remove spaces from the end of lines? $text = preg_replace("~^[ \t]+|[ \t]+$~m", '', trim($text)); ``` _Originally...
During local development, it is sometimes necessary to check the appearance of a sent email. In Yii2, this was implemented as follows: the sent message was intercepted and saved in...
FileMailer creates empty file if htmlBody used ``` $message = new Message( from: '[email protected]', to: '[email protected]', subject: 'test subject', htmlBody: 'text body', ); $mailer->send($message); ```