Results 1 to 3 of 3
- 08-18-2009, 10:50 AM #1
Member
- Join Date
- Jun 2008
- Posts
- 1
- Rep Power
- 0
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port:
Hi Champs,
I got Could not connect to SMTP host: smtp.gmail.com, port: 25 exception when i send a mail by java program on Linux server.
when i execute the same program it works fine.
Any champ have any idea about the same so plz reply me ..
Thanks,
Nikunj
- 08-23-2011, 09:40 PM #2
Senior Member
- Join Date
- Feb 2009
- Posts
- 303
- Rep Power
- 5
I thought gmail used port 587
- 08-24-2011, 04:32 PM #3
Member
- Join Date
- Aug 2011
- Posts
- 3
- Rep Power
- 0
StormyWaters is right if you want to send an email from your GMAIL account.
... Unless you want to send an email to a gmail account, in this case the MX lookup of Server with port 25 is
5 gmail-smtp-in.l.google.com 74.125.65.27 60 min SMTP Test Blacklist Check
10 alt1.gmail-smtp-in.l.google.com 74.125.113.27 60 min SMTP Test Blacklist Check
20 alt2.gmail-smtp-in.l.google.com 209.85.143.27 60 min SMTP Test Blacklist Check
30 alt3.gmail-smtp-in.l.google.com 209.85.229.27 60 min SMTP Test Blacklist Check
40 alt4.gmail-smtp-in.l.google.com 74.125.79.27 60 min SMTP Test Blacklist Check
If you have discrepancy between 2 servers then I suggest looking at your firewall...
Similar Threads
-
sending a simple email message via SMTP
By chahhchahh in forum NetworkingReplies: 5Last Post: 03-08-2009, 06:58 PM -
Java Mail "SMTP host" Exception
By Poyntz in forum NetworkingReplies: 15Last Post: 01-06-2009, 07:52 PM -
sending email without SMTP?
By java_srinivasan in forum Advanced JavaReplies: 1Last Post: 07-23-2008, 03:45 PM -
A Client to Send SMTP Mail
By Java Tip in forum java.netReplies: 0Last Post: 04-07-2008, 08:06 PM -
Readind email from smtp server
By pzkhan in forum Advanced JavaReplies: 0Last Post: 02-10-2008, 07:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks