Could not open an SMTP connection.

671 views
Skip to first unread message

suma suma

unread,
Mar 9, 2009, 5:38:41 AM3/9/09
to atg_...@googlegroups.com
hi

i am  sending  the mail using SMTPEmailSender.i have this exception atg.service.email.EmailException: Could not open an SMTP connection.

17:43:11,859 ERROR [smtpmail] Could not open an SMTP connection
17:43:11,859 INFO  [STDOUT] mail Exception atg.service.email.EmailException: Could not open an SMTP connection

emailHandlerHostName  is smtp.gmail.com
emailHandlerPort is 465  and i gave all properties for SMTPEmailSender.


i try through the acc to open connection

i got this
atg.service.email.EmailException: Could not open an SMTP connection
at atg.service.email.SMTPEmailSender.openConnection(SMTPEmailSender.java:784)


plz reply with example

 



Thanks

suma

Shailendra Pateria

unread,
Mar 11, 2009, 12:34:02 AM3/11/09
to atg_...@googlegroups.com
try telnet smtp.gmail.com 465.....if this doesnt work that means ur system is blocking this request somewhere(firewall etc.)
--
Best Regards,
Shailendra Pateria
09999276543

suma suma

unread,
Mar 12, 2009, 5:54:40 AM3/12/09
to atg_...@googlegroups.com
hi

thanx for reply. i tried through this server smtp.bizmail.yahoo.com .

i  saw this message  in server

Headers
Date = Thu, 12 Mar 2009 15:11:20 +0530 (IST)
Message-Id = <26079725.11236850880453.JavaMail.sarada@saradapc>
Subject = test mail
MIME-Version = 1.0
Content-Type = text/plain; charset=us-ascii
Content-Transfer-Encoding = 7bit
System flags
User flags
This is a String
 this is for testing the mail coming from


but i did n't get the mail.


i saw  error message in acc

SMTP.sendEmailMessage:Testmode javax.mail.internet.MimeMessage@8821c2


Thanks,
suma
Reply all
Reply to author
Forward
0 new messages