Quantcast

error when i try to send email

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

error when i try to send email

chichibek bros

Hi group. I'm trying to send an email trough email plugin http://grails.org/plugin/mail, and in my Config.groovy file i setup the smtp server like this  

grails {
   mail {
     host = "smtp.gmail.com"
     port = 465
     ssl = "on"
     username = "[hidden email]"
     password = "chichibek"
     props = ["mail.smtp.auth":"true",     
       
              "mail.smtp.socketFactory.port"
:"465",
              "mail.smtp.socketFactory.
class":"javax.net.ssl.SSLSocketFactory",
              "mail.smtp.socketFactory.
fallback":"false"]

  }
}

But when i try to send an email i get this exception.

Error 500: Internal Server Error

URI
/pyp/user/send
Class
java.net.ConnectException
Message
Connection refused

Any suggestion?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: error when i try to send email

Sebastian Gozin
The only difference I have in my app is that I don't set ssl = "on"

On 23 May 2012, at 22:38, chichibek bros wrote:

Hi group. I'm trying to send an email trough email plugin http://grails.org/plugin/mail, and in my Config.groovy file i setup the smtp server like this  

grails {
   mail {
     host = "smtp.gmail.com"
     port = 465
     ssl = "on"
     username = "[hidden email]"
     password = "chichibek"
     props = ["mail.smtp.auth":"true",     
       
              "mail.smtp.socketFactory.port"
:"465",
              "mail.smtp.socketFactory.
class":"javax.net.ssl.SSLSocketFactory",
              "mail.smtp.socketFactory.
fallback":"false"]

  }
}

But when i try to send an email i get this exception.

Error 500: Internal Server Error

URI
/pyp/user/send
Class
java.net.ConnectException
Message
Connection refused

Any suggestion?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: error when i try to send email

chichibek bros
Thanks for the time to answer Sebastian i delete ssl = "on" and tried again but i get the same mistake

2012/5/23 Sebastian Gozin <[hidden email]>
The only difference I have in my app is that I don't set ssl = "on"

On 23 May 2012, at 22:38, chichibek bros wrote:

Hi group. I'm trying to send an email trough email plugin http://grails.org/plugin/mail, and in my Config.groovy file i setup the smtp server like this  

grails {
   mail {
     host = "smtp.gmail.com"
     port = 465
     ssl = "on"
     username = "[hidden email]"
     password = "chichibek"
     props = ["mail.smtp.auth":"true",     
       
              "mail.smtp.socketFactory.port"
:"465",
              "mail.smtp.socketFactory.
class":"javax.net.ssl.SSLSocketFactory",
              "mail.smtp.socketFactory.
fallback":"false"]

  }
}

But when i try to send an email i get this exception.

Error 500: Internal Server Error

URI
/pyp/user/send
Class
java.net.ConnectException
Message
Connection refused

Any suggestion?


mcf
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: error when i try to send email

mcf
Hi chichibek,

My configuration for using gmail works properly either in my notebook or in a Amazon machine...

grails {
mail {
 host = "smtp.gmail.com"
 port = 465
 username = "[hidden email]"
 password = "some-password"
 props = ["mail.smtp.auth":"true",
  "mail.smtp.socketFactory.port":"465",
  "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
  "mail.smtp.socketFactory.fallback":"false"]
}
 }

Do you have a firewall between your application server machine and the internet?

----
Marcelo Carvalho Fernandes
+55 21 8272-7970



On Wed, May 23, 2012 at 5:50 PM, chichibek bros <[hidden email]> wrote:
Thanks for the time to answer Sebastian i delete ssl = "on" and tried again but i get the same mistake


2012/5/23 Sebastian Gozin <[hidden email]>
The only difference I have in my app is that I don't set ssl = "on"

On 23 May 2012, at 22:38, chichibek bros wrote:

Hi group. I'm trying to send an email trough email plugin http://grails.org/plugin/mail, and in my Config.groovy file i setup the smtp server like this  

grails {
   mail {
     host = "smtp.gmail.com"
     port = 465
     ssl = "on"
     username = "[hidden email]"
     password = "chichibek"
     props = ["mail.smtp.auth":"true",     
       
              "mail.smtp.socketFactory.port"
:"465",
              "mail.smtp.socketFactory.
class":"javax.net.ssl.SSLSocketFactory",
              "mail.smtp.socketFactory.
fallback":"false"]

  }
}

But when i try to send an email i get this exception.

Error 500: Internal Server Error

URI
/pyp/user/send
Class
java.net.ConnectException
Message
Connection refused

Any suggestion?



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: error when i try to send email

chichibek bros
thanks for the answer i will try right now. and i'll tell you

2012/5/24 Marcelo Carvalho Fernandes <[hidden email]>
Hi chichibek,

My configuration for using gmail works properly either in my notebook or in a Amazon machine...

grails {
mail {
 host = "smtp.gmail.com"
 port = 465
 username = "[hidden email]"
 password = "some-password"
 props = ["mail.smtp.auth":"true",
  "mail.smtp.socketFactory.port":"465",
  "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
  "mail.smtp.socketFactory.fallback":"false"]
}
 }

Do you have a firewall between your application server machine and the internet?

----
Marcelo Carvalho Fernandes
<a href="tel:%2B55%2021%208272-7970" value="+552182727970" target="_blank">+55 21 8272-7970




On Wed, May 23, 2012 at 5:50 PM, chichibek bros <[hidden email]> wrote:
Thanks for the time to answer Sebastian i delete ssl = "on" and tried again but i get the same mistake


2012/5/23 Sebastian Gozin <[hidden email]>
The only difference I have in my app is that I don't set ssl = "on"

On 23 May 2012, at 22:38, chichibek bros wrote:

Hi group. I'm trying to send an email trough email plugin http://grails.org/plugin/mail, and in my Config.groovy file i setup the smtp server like this  

grails {
   mail {
     host = "smtp.gmail.com"
     port = 465
     ssl = "on"
     username = "[hidden email]"
     password = "chichibek"
     props = ["mail.smtp.auth":"true",     
       
              "mail.smtp.socketFactory.port"
:"465",
              "mail.smtp.socketFactory.
class":"javax.net.ssl.SSLSocketFactory",
              "mail.smtp.socketFactory.
fallback":"false"]

  }
}

But when i try to send an email i get this exception.

Error 500: Internal Server Error

URI
/pyp/user/send
Class
java.net.ConnectException
Message
Connection refused

Any suggestion?




Loading...