aspose file tools*
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
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: 41818
    
  62
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to send mail