aspose file tools*
The moose likes Beginning Java and the fly likes J2SE E-mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "J2SE E-mail" Watch "J2SE E-mail" New topic

J2SE E-mail

Jon Parise
Ranch Hand

Joined: Jul 03, 2007
Posts: 81
Hey everyone,

I was wondering if anyone could inform me about sending e-mail with Java SE. I'm really not sure what class handles this, or even if there is one for it. All I really want to do is have my Java SE application send e-mails to alert users. Everything I found through Googling regarding e-mails was J2EE.

All I really need is direction on where to look, but an example would be great too.


Joe Matthew
Ranch Hand

Joined: Jun 10, 2008
Posts: 66
Check out this link

Regards,<br />Joe<br /> <br />"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live."<br />--Martin Golding
Jon Parise
Ranch Hand

Joined: Jul 03, 2007
Posts: 81
Thanks that is exactly what I needed!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39551
The JavaMail allows one to access a mail server when using J2SE or J2EE. It's of little help if no mail server is available. That's when you need Aspirin - as embeddable email server. It's perfect if you just need to send email (and not receive it), since it doesn't rely on an external email server being available.

Ping & DNS - updated with new look and Ping home screen widget
Jon Parise
Ranch Hand

Joined: Jul 03, 2007
Posts: 81
Thanks Ulf,

Aspirin and Java Mail sound like just what I need. I've downloaded both and will try incorporating them into my App when I get a chance. It one of those "You can work on this project in your spare time" applications. As if Engineers ever have "spare time"....

Thanks for the replies,

I agree. Here's the link:
subject: J2SE E-mail
Similar Threads
E-mail Issue
Is There Java Source Code For Something Similar To Yahoo E-mail?
order mails by date JAVAMAIL
Passed IBM 158?
Automatic E-mails