Skip to content

Instantly share code, notes, and snippets.

@behrangsa
Created June 4, 2011 03:18
Show Gist options
  • Save behrangsa/1007534 to your computer and use it in GitHub Desktop.
Save behrangsa/1007534 to your computer and use it in GitHub Desktop.
mailSender
mailSender(org.springframework.mail.javamail.JavaMailSenderImpl) {
host = 'smtp.gmail.com'
port = 465
username = '<your email>@gmail.com'
password = '<your password>'
javaMailProperties = ['mail.smtp.auth': 'true',
'mail.smtp.socketFactory.port': '465',
'mail.smtp.socketFactory.class': 'javax.net.ssl.SSLSocketFactory',
'mail.smtp.socketFactory.fallback': 'false']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment