ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Unable to send email through Gmail SMTP server

Post new topic  Reply to topic
 Unable to send email through Gmail SMTP server « View previous topic :: View next topic » 
Author Message
sasad
PostPosted: Wed Sep 10, 2014 12:24 am    Post subject: Unable to send email through Gmail SMTP server Reply with quote

Acolyte

Joined: 30 Apr 2014
Posts: 67

Hi everyone,
I have following message flow

FileInput -> Compute -> EmailOutput

I fetch file from local dir add it as an attachment and send it to some email addrees. I am able to send email using my exchange smtp server (but only internally). I need to send Email using Gmail SMtP server.

following are the configurations on Email Output node

SMTP Server : smtp.gmail.com:465
Security : securityIdentity created for gmail account using mqsisetdbparms
mqsisetdbparms IB9NODE -n smtp::gmailSecId -u abc@gmail.com -p password

But I am getting following exception for gmail smtp server, exception indicates that connection is made with gmail but times out in sending email.

( ['MQROOT' : 0x2a1b9590]
(0x01000000:Name):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\slot1\S900_P\src\DataFlowEngine\TemplateNodes\ImbOutputTemplateNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 326 (INTEGER)
(0x03000000:NameValue):Function = 'ImbOutputTemplateNode::processMessageAssemblyToFailure' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmEmailOutputNode' (CHARACTER)
(0x03000000:NameValue):Name = 'AttachmentMsgFlow#FCMComposite_1_2' (CHARACTER)
(0x03000000:NameValue):Label = 'AttachmentMsgFlow.Email Output' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2230 (INTEGER)
(0x03000000:NameValue):Text = 'Caught exception and rethrowing' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 14 (INTEGER)
(0x03000000:NameValue):Text = 'AttachmentMsgFlow.Email Output' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'MbErrorHandler.java' (CHARACTER)
(0x03000000:NameValue):Line = 154 (INTEGER)
(0x03000000:NameValue):Function = 'sendMimeEmail()' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 4459 (INTEGER)
(0x03000000:NameValue):Text = 'Exception sending email' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'com.ibm.broker.emailnodes.EmailOutputNode : javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out

at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)

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

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 com.ibm.broker.emailnodes.EmailOutputNode.sendMail(EmailOutputNode.java:446)

at com.ibm.broker.emailnodes.EmailOutputNode.sendMimeEmail(EmailOutputNode.java:716)

at com.ibm.broker.emailnodes.EmailOutputNode.sendData(EmailOutputNode.java:360)

at com.ibm.broker.plugin.MbOutputTemplateNode.sendData(MbOutputTemplateNode.java:54)

Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)

... 8 more

' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'MbErrorHandler.java' (CHARACTER)
(0x03000000:NameValue):Line = 318 (INTEGER)
(0x03000000:NameValue):Function = 'throwableToMbException' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 4678 (INTEGER)
(0x03000000:NameValue):Text = 'Exception sending email' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'Exception reading response

Read timed out

' (CHARACTER)
)
)
)
)
)
Back to top
View user's profile Send private message
iib
PostPosted: Fri Jun 26, 2015 7:43 am    Post subject: Reply with quote

Apprentice

Joined: 26 Jun 2015
Posts: 27

I have this same error, one has been able to fix it. Using Gmail SMTP is only for testing.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jun 26, 2015 10:33 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And here I thought you needed SSL on top of that with gmail...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Unable to send email through Gmail SMTP server
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.