my dog learned polymorphism
The moose likes Other JSE/JEE APIs and the fly likes POP Authentication problem???? 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 "POP Authentication problem????" Watch "POP Authentication problem????" New topic

POP Authentication problem????

Anup Agrawal

Joined: Jun 09, 2001
Posts: 19

I am unable to get started with javamail. I tried the very first example given by sun given with the file I followed the following steps (also given at
1. donloaded the latest versions of javamail api i.e.
2. downloaded the java activation framework
3. unzipped both the files and added the activation.jar and mail.jar
4. and set the classpath for both the above files . I placed the files in
5. then compiled the program
6. then tried running the program with
java msgsend -o -M
7. after that it asks for the subject. I write the subjec and then the msg and then ctrl Z to indicate end of msg(as instructed)
8. After sometime it give exception that
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 521 closing transmission channel. You must be pop-authenticated before you can use this smtp server, and you must use your yahoo m
ail address for the Sender/From field.
at javax.mail.Transport.send0(
at javax.mail.Transport.send(
at msgsend.<init>(
at msgsend.main(
I am unable to understand how to give my address and where to give it. Please help me out.
Anup Agrawal

Joined: Jun 09, 2001
Posts: 19
Plz help me out.
Waiting for your replies
Mark Leong
Ranch Hand

Joined: Dec 11, 2000
Posts: 60
I think your problem is because Yahoo does not allow you to relay mail through its smtp server.
If you are pretty sure your code is working, try running it from and use their server.
Anup Agrawal

Joined: Jun 09, 2001
Posts: 19
I downloaded First up mail server. Now I am able to send the mail through this server. I am trying to explore in depth.
Will get back you to with more queries.
Thanks to Javaranch.

[This message has been edited by Anup Agrawal (edited June 16, 2001).]
I agree. Here's the link:
subject: POP Authentication problem????
It's not a secret anymore!