Setting up a members SMTP server to be used for emails end by the platform
The platform can be configured to use a members' SMTP server to send its emails. To configure this:
- add a mailer in the database under
/scripts/config/mailers
- reference the mailer key for the email actions you want it to be used.
Example json
{
"from": "no-reply@themobilityfactory.eu",
"fromName": "The Mobility Factory",
"host": "smtp-auth.mailprotect.be:<port number here>",
"password": "your password here",
"username": "no-reply@themobilityfactory.eu"
}
Test SMTP server
To test an smtp server you can execute the following command:
swaks --to tim.alenus@themobilityfactory.coop --from <from email member> --server <smtp server member>:<port> --auth LOGIN