File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Sending mail - Y! Mail - failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Sending mail - Y! Mail - failed" Watch "Sending mail - Y! Mail - failed" New topic
Author

Sending mail - Y! Mail - failed

Shashank Agarwal
Ranch Hand

Joined: May 20, 2004
Posts: 105
Hi everyone,

I've got a funny problem. I've got a JSP that is supposed to send mail. Well, it does so alright, but when i try sending a mail to Yahoo Mail, it executes perfectly, but I'm not recieving the mail.

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

What happens when you send an email to a non-yahoo address? Does that work? Have you checked your Spam folder in Yahoo to make sure Yahoo doesn't think it's malicious?


GenRocket - Experts at Building Test Data
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61214
    
  66

Moving to the Other Java APIs forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Shashank Agarwal
Ranch Hand

Joined: May 20, 2004
Posts: 105
It isnt in the bulk folder either.
here's its code


When i tried sending mail to another account in indiatimes.com, it didnt go. But when i sent it to thejavahub@thejavahub.com, it did.

Pls hlp...
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

It could be your SMTP server. Does it require authentication? It could require authentication to send mail to domains outside of it's own. I'm just throwing around ideas here.

You probably should install an SMTP server on your PC and test it that way.
Shashank Agarwal
Ranch Hand

Joined: May 20, 2004
Posts: 105
How do you provide authentication in the code. I mean, where shall i enter the password, if i'm supposed to do so.

Is it possible that i use another smpt server to send my mails?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have you implemented Transport and Connection handlers? Its a very good way to see what's going on - since they can be made to report Transport and Connection events. You also should turn on SMTP debugging so you can see the SMTP messages. I reckon an authentication exception would be obvious (though I can't say for sure - I've never tried to use an SMTP server that needs authentication - since authentication is not part of the SMTP spec.).

Your SMTP server (thejavahub.com) - try teleting to it and sending a mail that way. If you can do this then JavaMail should work. If you can't send to anything other than thejavahub.com addresses I'd suggest you check how your server is configured.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Shashank Agarwal
Ranch Hand

Joined: May 20, 2004
Posts: 105
Thanks Paul. I've asked my host for the server configs. Thanks to Gregg and Bear too. I'll get back to you guys immidiately after whatever happens
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending mail - Y! Mail - failed