Results 1 to 10 of 10
Thread: how to send an email
- 03-04-2010, 10:09 AM #1
Member
- Join Date
- Feb 2010
- Posts
- 37
- Rep Power
- 0
how to send an email
hello,
I am trying to send mail
I am using JavaMail API in eclipse
when I am trying to send mail then it gives an following error
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 995, response: -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1694)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:525)
at javax.mail.Service.connect(Service.java:291)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javax.mail.Transport.send0(Transport.java:190)
at javax.mail.Transport.send(Transport.java:120)
at EmailAttachmentDemo.sendEmail(EmailAttachmentDemo. java:69)
at EmailAttachmentDemo.main(EmailAttachmentDemo.java: 19)
- 03-04-2010, 01:55 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I think for SMTP you cannot use port 995 in gmial server. Use 465 and try.
- 03-07-2010, 07:55 PM #3
Senior Member
- Join Date
- Dec 2009
- Location
- Belgrade, Serbia
- Posts
- 364
- Rep Power
- 4
Use SEARCH on this forum
there are many examples right here on this forum for your problem
- 03-08-2010, 04:15 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 03-09-2010, 04:12 AM #5
Member
- Join Date
- Feb 2010
- Posts
- 37
- Rep Power
- 0
yes i ve tried y?
- 03-14-2010, 11:54 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 03-18-2010, 04:16 AM #7
Member
- Join Date
- Feb 2010
- Posts
- 37
- Rep Power
- 0
yes its working.
but i ve found it from google
thanks
- 03-18-2010, 09:37 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Fine, then mark the thread solved.
- 03-19-2010, 04:44 AM #9
Member
- Join Date
- Feb 2010
- Posts
- 37
- Rep Power
- 0
how can i marked thread as a solved
- 03-19-2010, 07:44 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
On top the thread, there is a menu. Click on Thread Tools, you can find the option to do it.
Similar Threads
-
Using freemarker to send an email in Japanese utf-8
By mackstar in forum New To JavaReplies: 0Last Post: 09-01-2009, 10:49 AM -
how to send an email
By painamrata in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 02-22-2009, 04:28 PM -
send email using JMS
By Heather in forum Advanced JavaReplies: 9Last Post: 01-07-2009, 03:04 PM -
send email using apache commons email
By jnamendi in forum JavaServer Faces (JSF)Replies: 0Last Post: 10-14-2008, 05:55 PM -
Email send problem
By serjant in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 09-19-2008, 02:15 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks