wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Unable to send mail 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 "Unable to send mail" Watch "Unable to send mail" New topic
Author

Unable to send mail

Swayamveer Saurabh
Greenhorn

Joined: Jan 22, 2014
Posts: 7
What I did:
1. I am connected to the internet using my phone.
2. I downloaded apache-james 2.3.2; executed run.bat from bin with default settings. No changes were made.
3. I have mail.jar and activation.jar in my build path
4. Used this code from a tutorial website



Question: What am I missing out?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
What do you mean? What happens if you run this code? But since you said nothing about settings up accounts or a DNS MX record, and are using an external sender address, it looks like you are setting up a send-only server (i.e., just SMTP, not POP or IMAP). In which case the question would be: why use a mail server at all? Why not use just the JavaMail API?


Ping & DNS - my free Android networking tools app
 
 
subject: Unable to send mail
 
Similar Threads
how to send mail using gmail server
Can not send mail to other mail server
Need Help in creating a Java Mailer
javax.mail package
Confusion in JavaMail