This content has been marked as final. Show 8 replies
Thank you very much for response.
Your using Organization host name 'abc.pqr.xyz'. That works. Try with the Gmail host name. Probabaly you will get the same error.
If i use my organization host name, it's wokring.
Edited by: 000201 on Dec 6, 2012 4:35 AM
Edited by: 000201 on Dec 6, 2012 4:36 AM
Can you verify the connection to the SMTP mail server of Google from the system that you are trying?
It could be blocked by your organization's proxy server. (Your organization's host name is working because it is allowed to connect within the proxy server)
Keep posting the updates.
I tried pinging smtp.google.com. But it was unsuccessful, not sure whether it is just because that I am using proxy or the ping cmd itself is blocked for that domain. I was unlucky with telnet as well.
Alternative way (/ ideal way :-) ) is to write a sample SMTP program which sends email in which you can specify the SMTP server as that of Google's (might look time consuming but you can get so many samples and references when you search)
when i pinged smtp.google.com on command prompt. I got a response.
not sure :), probably change requires at application server level.
I included below code at startdynamo. But still could not connect.
JAVA_ARGS="-Dmail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory -Dmail.smtp.auth=true $JAVA_ARGS"
Before digging into the app server level, can you check the below properties in your /atg/dynamo/service/SMTPEmail component? :)
emailHandlerPort -> default is 25. I could see ti is trying to connect thro 465. Is it something you have specified? Is it working with this port when you point to your organization's SMTP server?
username and password -> I hope when using smtp.google.com, it requires authentication to connect to it. Am just wondering whether giving valid values for these properties might help in connecting.
waitForConnectionMillis -> property used to specify the number of milliseconds to wait for the connection. Default is 5 seconds. You can try increasing this to a large value.
Thanks Guys for your support.
Finally found the solution...
Given the system properties before invoking the send email mehtod of templateemailsender class.
Properties pp = System.getProperties();