cancel
Showing results for 
Search instead for 
Did you mean: 

sending email to google account

ivan_hajdinjak
Champ in-the-making
Champ in-the-making
Greetings,

i have a problem with Mail task. I'm trying to sent mail to google acoount. I don't have any SMTP installed on host, suggesting that Mail task has one integreted in itself.
properties in activiti.cfg.xml are:

<property name="mailServerHost" value="smtp.gmail.com" />
    <property name="mailServerPort" value="465" />

(I eventualy tried with mailUsrN and mailPass property of google mail account but nothing changed).

I've tried with http://forums.activiti.org/en/viewtopic.php?f=6&t=1083 thread, but no use. Either I get exception Wrapped Exception (with status template): Could not send e-mail or empty pop-up shows with only ! mark.

Any clue of that ?

True regards,
Ivan Hajdinjak

P.S. Sending the email to the following server failed: smtp.gmail.com:465
Could not connect to SMTP host: smtp.gmail.com, port:465, response: -1
6 REPLIES 6

frederikherema1
Star Contributor
Star Contributor
I'm not sure if smtp.google.com just accepts mail from any host…

ivan_hajdinjak
Champ in-the-making
Champ in-the-making
What's my alternative if Mail Task doesn't work for me ?

frederikherema1
Star Contributor
Star Contributor
It's not the mail-task that's causing this issue, this just uses the commons-email to send mail. You should find an open smtp-server to use.

Maybe workaround for using google: http://lifehacker.com/#!111166/how-to-use-gmail-as-your-smtp-server

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Google acceots mail from anywhere, you just need to take into account two things
- the connection is secured ssl/starttls, so that needs to be supported by the mailtask
- you need to authenticate to the server. This needs to be supported to

The latter is supported, te former not from what I read, so it stil could be the mail-task.

limcheekin
Champ on-the-rise
Champ on-the-rise
Hi Ivan Hajdinjak,

I managed to send mail using gmail/google apps account previously using the mail task, you need to set some system properties prior to used it. Please see http://code.google.com/p/grails-activiti-plugin/wiki/VacationRequestSampleApplication#Email_notifica...

Hope this help.

Best regards,
Chee Kin

smirzai
Champ on-the-rise
Champ on-the-rise
HI
This fix might help: http://jira.codehaus.org/browse/ACT-1350

you just need to set mailServerUserSSL to true.


Regards
Saeid