https://github.com/ntidev/emailbundle
Logging email bundle for Swiftmailer. Gives you the ability to log in a database the messages being sent for possible resending and auditing.
https://github.com/ntidev/emailbundle
Last synced: 11 months ago
JSON representation
Logging email bundle for Swiftmailer. Gives you the ability to log in a database the messages being sent for possible resending and auditing.
- Host: GitHub
- URL: https://github.com/ntidev/emailbundle
- Owner: ntidev
- License: mit
- Created: 2017-01-10T13:40:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T14:09:04.000Z (about 2 years ago)
- Last Synced: 2024-04-24T16:59:11.964Z (about 2 years ago)
- Language: PHP
- Size: 65.4 KB
- Stars: 2
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NTIEmailBundle
### Installation
1. Install the bundle using composer:
```
$ composer require ntidev/email-bundle "dev-master"
```
2. Add the bundle configuration to the AppKernel
```
public function registerBundles()
{
$bundles = array(
...
new NTI\EmailBundle\NTIEmailBundle(),
...
);
}
```
3. Update the database schema
```
$ php app/console doctrine:schema:update
```
### Usage
### Cronjob
Schedule the following cronjob to check and send emails in the queue:
```
# /etc/crontab
# ...
# NTIEmailBundle
* * * * * [user] php /path/to/project/app/console nti:email:check
```