Mail configuration

2 views
Skip to first unread message

samura...@gmail.com

unread,
Apr 28, 2009, 3:54:39 PM4/28/09
to Party Time Project
Without making any changes , i get

org.springframework.mail.MailSendException: Mail server connection
failed; nested exception is javax.mail.MessagingException: Could not
connect to SMTP host: localhost, port: 25; nested exception is:
java.net.ConnectException: Connection refused: connect

in config.groovy i have :

grails {
mail {
username = "favmedbot"
password = "favmedb0t"
host = "smtp.gmail.com"
port = 465
props = ["mail.smtp.auth":"true",
"mail.smtp.socketFactory.port":"465",

"mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
"mail.smtp.socketFactory.fallback":"false"]
}
}

any idea why it is not trying to connect smtp.gmail , but to DEAFULT
localgost :25?
Reply all
Reply to author
Forward
0 new messages