• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can not send mail to other mail server

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I use the code above to send mail with my local machine but the problem comes when I Uncomment path of the commented lines in other to send mail to the my yahoo and gmail account respectively:

My attempt to yahoo server gives:


javax.mail.MessagingException: Could not connect to SMTP host: yahoo.com, port:25, response: 421;
.....
.....

While my attempt to gmail server gives:

javax.mail.MessagingException: Could not connect to SMTP host: gmail.com, port:25;
.....
.....

Please let somebody help me check if there is something that am not getting right?
I use Apache Jamas Mail Server,
Thank for your help
 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://answers.yahoo.com/question/index?qid=20090318021519AALoBCr
http://mail.google.com/support/bin/answer.py?hl=en&answer=13287

In other words, you cannot use "yahoo.com" or "gmail.com" - you must use their sub domains that are specifically set up for SMTP.
 
Paul Okeke
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, I don,t mean configuring my GMail non Yahoo account.

This is my situation,

I have Apache James Mail Server installed on my Local Machine. I also have internet connection which I use to try my code for communication between my local mail server and remote servers like GMail and Yahoo.

So far, things works fine on my local server but I issues arises when I tried access to a remote server like GMail/Yahoo with the code in my previous post and got


Now, I observed that I don't need uncomment either lines 5 or 6 in order to send mail to remote server.
Sending mail with either line 13 or 14, the message sends successfully with out any error.
BUT, unfortunately the message never get delivered to the Yahoo/Gmail Account.

Please Your Help will be high apreciated. I have researched alot for a solution without success.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic