lindomar / notification
This is a library that uses composer as the basis for generating email notifications
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/lindomar/notification
Requires
- phpmailer/phpmailer: 6.4.1
README
This library has the function of sending e-mail using a phpmailer library. Doing this in an uncomplicated way is essential for any system.
To install the library, run the following command:
composer require lindomar/notification
To use the library, simply require the composer to autoload, invoke the class and call the method:
Copy the file config_mail.json.exemple to /config/config_mail.json
Update with your SMTP server configuration data
{
"SMTPDebug" : "2",
"MAIL_MAILER" : "smtp",
"MAIL_HOST": "smtp.mailtrap.io",
"MAIL_PORT": "2525",
"MAIL_USERNAME": "XXXXXXXXXXXXXX",
"MAIL_PASSWORD": "XXXXXXXXXXXXXX",
"MAIL_ENCRYPTION": "tls"
}
Developers
License
MIT