-
Notifications
You must be signed in to change notification settings - Fork 986
Email configuration
myselfolli edited this page Jun 29, 2018
·
4 revisions
Streama uses the Grails Mail plugin
By default the plugin assumes an unsecured mail server configured on port 25, getting the SMTP host name from the environment variable SMTP_HOST.
You can also add mail server configuration in the application.yml.
For unencrypted SMTP:
environments:
production:
#See the sample application.yml (https://github.com/dularion/streama/blob/master/docs/sample_application.yml) for reference
grails:
mail:
host: smtp.domain.com
port: 25
username: [email protected]
password: yourpassword
default:
from: [email protected]
For Gmail:
environments:
production:
#See the sample application.yml (https://github.com/dularion/streama/blob/master/docs/sample_application.yml)
grails:
mail:
host: smtp.gmail.com
port: 465
username: [email protected]
password: yourpassword
props: {mail.smtp.auth: true,
mail.smtp.socketFactory.port: 465,
mail.smtp.socketFactory.class: javax.net.ssl.SSLSocketFactory,
mail.smtp.socketFactory.fallback: false}
default:
from: [email protected]
For Hotmail:
environments:
production:
#See the sample application.yml (https://github.com/dularion/streama/blob/master/docs/sample_application.yml)
grails:
mail:
host: smtp.live.com
port: 587
username: [email protected]
password: yourpassword
props: {mail.smtp.starttls.enable: true,
mail.smtp.port: 587}
deafult:
from: [email protected]