jQuery in Action, 2nd edition*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "POP Authentication problem????" Watch "POP Authentication problem????" New topic
Author

POP Authentication problem????

Anup Agrawal
Greenhorn

Joined: Jun 09, 2001
Posts: 19

I am unable to get started with javamail. I tried the very first example given by sun msgsend.java given with the file javamail-1.2.zip. I followed the following steps (also given at http://developer.java.sun.com/developer/onlineTraining/JavaMail/exercises/MailSetup/help.html).
1. donloaded the latest versions of javamail api i.e. javamail1_2.zip
2. downloaded the java activation framework jaf1_0_1.zip
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
c:\jdk1.3\jre\lib\ext
5. then compiled the program msgsend.java
6. then tried running the program with
java msgsend -o anup3001@yahoo.com -M smtp.mail.yahoo.com anup1024@yahoo.com
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 yahoo.com 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(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at msgsend.<init>(msgsend.java:162)
at msgsend.main(msgsend.java:52)
I am unable to understand how to give my address and where to give it. Please help me out.
Regards,
Anup
Anup Agrawal
Greenhorn

Joined: Jun 09, 2001
Posts: 19
Friends,
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 webappcabaret.com and use their server.
Anup Agrawal
Greenhorn

Joined: Jun 09, 2001
Posts: 19
Sir,
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.
Regards,
Anup

[This message has been edited by Anup Agrawal (edited June 16, 2001).]
 
Don't get me started about those stupid light bulbs.
 
subject: POP Authentication problem????
 
Similar Threads
Java Mail Server
Need some help me java mail-smtp
Sending E-mails Using the JavaMail (How to Do It?)
JavaMail and Server
Java Mail