This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
Marshal
Posts: 22458
121
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic