Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My god, I'm just trying to send an email...

I'm in Ubuntu (12.10), trying to send email from Java. So, javax.mail. Is there a simple Ubuntu package for this? Seems like a common need. I can download it from Oracle, but I want a package. Googling turns up a package called geronimo-javamail-1.4-spec-java, and a little more googling tells me that Geronimo is an application server, and I don't think that's something I want to get involved with, just to send an email.

share|improve this question
    
care to explain the drive-by downvote? i think i'm asking a perfectly reasonable question, and in an appropriate forum. –  philo Nov 30 '12 at 17:59
    
This is not a help forum, it's a question and answers site. The difference is subtle. –  Dennis Kaarsemaker Nov 30 '12 at 19:26
    
I asked about installing something with an API instead of a UI. I regret nothing. –  philo Nov 30 '12 at 23:20
add comment

3 Answers 3

You can use Postfix, Sendmail or even Qmail.

There is a list of SMTP servers available on Wikipedia.

Postfix is the default SMTP server on Ubuntu and has documentation available for Ubuntu.

Postfix is a package that is available on Ubuntu, but if you want a Java library available as a package, I don't think that exists.

share|improve this answer
add comment

There is no package in Ubuntu that provides javax.mail as it doesn't ship Java EE (or a standalone javamail). You'll need to downoad it yourself from oracle. Besides that, programming questions are rather off-topic here, best go to Stack Overflow for programming help.

share|improve this answer
add comment

There's no javax.mail package because libraries aren't distributed that way. Of course. That's a job for a build manager, like Maven.

Distributing Java libraries as Ubuntu packages would needlessly tie those projects to Ubuntu. But for system-dependent libraries, it's not uncommon to distribute them that way.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.