Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jedenweb/mail
Email factory for Nette Framework
https://github.com/jedenweb/mail
Last synced: about 2 months ago
JSON representation
Email factory for Nette Framework
- Host: GitHub
- URL: https://github.com/jedenweb/mail
- Owner: JedenWeb
- License: other
- Created: 2013-09-15T17:58:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T14:51:14.000Z (almost 7 years ago)
- Last Synced: 2024-04-27T14:06:15.124Z (9 months ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
Simple mail factory for [Nette Framework](http://nette.org/)
## Instalation
The best way to install jedenweb/mail is using [Composer](http://getcomposer.org/):
```json
{
"require": {
"jedenweb/mail": "dev-master"
}
}
```After that you have to register extension in config.neon.
```neon
extensions:
mail: JedenWeb\Mail\DI\MailExtension
```## Usage
### Send mail
```php
/**
* @inject
* @var JedenWeb\Mail\MessageFactory
*/
public $messageFactory;public function sendMail()
{
$email = $this->messageFactory->create();$email->message->addTo(...);
$email->template->data = ...;$email->send();
}```