- To use the plugin with composer, you only need install the plugin with composer:
composer require cash/elgg-phpmailer
The composer/installer package install the plugin in the elgg mod folder.
- Enable in the admin panel. It will override the default email notification handler. There are smtp settings and an end of line marker override in the admin plugin settings.
This plugin provides a complete set of parameters including:
- Should this plugin override the default Elgg mail handler
- Should this plugin use smtp to send mail rather than php's mail function
- Should this plugin use authetication for smtp (username and password)
- Should this plugin use a SSL connection for smtp
- Is your Mail Transfer Agent non-standard in its line endings
If there are errors, they should be written to your server error log.
HOW TO CONFIRM THE PLUGIN IS WORKING
Check the header of an email that was sent after the plugin was enabled. You should see the sender as PHPMailer.
HOW TO USE THIS FROM ANOTHER PLUGIN
See the function phpmailer_send() in start.php.
PHPMailer can be found at https://github.com/PHPMailer/PHPMailer