AnsweredAssumed Answered

SMTP error in sending mail notification

Question asked by sreeram.babu on Jan 18, 2011
Latest reply on Jan 18, 2011 by Michael
hi,
My CR was to send email notification to particular users. GEL script I designed was so simple

<gel:script
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:core="jelly:core"
xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sql="jelly:sql"
xmlns:mail="jelly:email"
xmlns:xog="http://www.niku.com/xog"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ftp="jelly:com.niku.union.gel.FTPTagLibrary"
xmlns:file="jelly:com.niku.union.gel.FileTagLibrary">


<mail:email from="abc@clientdomain.com" to="axyz@clientdomain.com" subject="test mail" server="servername" >

******* This is auto-generated email. Please do not reply to this email ********
</mail:email>
<gel:log> the mail has been sent</gel:log>
</gel:script>

while running the process it gave the following error

rg.apache.commons.jelly.JellyTagException: null:16:103: <mail:email> Could not connect to SMTP host: client mail.client domain.com, port: 25

at org.apache.commons.jelly.tags.email.EmailTag.doTag(EmailTag.java:268)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)

at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)

at com.niku.union.gel.tags.ScriptTag.doTag(ScriptTag.java:20)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)

at com.niku.union.gel.GELScript.run(GELScript.java:80)

at com.niku.union.gel.GELController.invoke(GELController.java:20)

at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:180)

at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)

at java.lang.Thread.run(Thread.java:595)
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: clientmail.client domain.com.com, port: 25;
nested exception is:

java.net.ConnectException: Connection refused: connect


at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)

at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)

at javax.mail.Service.connect(Service.java:275)

at javax.mail.Service.connect(Service.java:156)

at javax.mail.Service.connect(Service.java:105)

at javax.mail.Transport.send0(Transport.java:168)

at javax.mail.Transport.send(Transport.java:98)

at org.apache.commons.jelly.tags.email.EmailTag.doTag(EmailTag.java:265)

... 10 more



I try to ping the the mail server from my Clarity application server, it pinged . When I try to tel net it like telnet clientmail.client domain.com.com 25, it gave an error

Connecting To 711mail.7-11.com...Could not open connection to the host, on port
25: Connect failed

The same process run a few days before , there was no problem in it . now its creating this problem

When i try to run other process which could send automatic mails...(not using GEL Custom script), the mails go through there was no problem in it.

So could please give an idea what the problem could it be, so I could check before escalating to respective Team


Thanks
Sreeram

Outcomes