We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

JavaMail Vs Other mail compatibles

jedistar
jedistar asked
on
Medium Priority
226 Views
Last Modified: 2013-11-24
Why do people use JavaMail instead of other mail compatibles such
as .NET components (.NET mailing features)..

Or do people use .NET more?

What other easy to implement mail protocols are there?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016

Commented:
Well you'd have to be running Windows on your server for one thing - not a good idea ;-)
CERTIFIED EXPERT
Top Expert 2016

Commented:
'have to be' is not strictly correct, but practicably so
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
Because Java is platform independent - you can use the same code and deploy it on any platform. The exchange-server can be a Microsoft exchange server or any other mail-server. The .NET code that you write will work with any mail-server but the code can be deployed on only Windows platform, unless you're using one of the 3rd party .NET implementations for Linux/ Mac like Mono (not recommended as they are not tried and tested).
Principal Technologist
CERTIFIED EXPERT
Commented:
>> Or do people use .NET more?

That's a larger question which can be answered on the basis of 'is .NET used more than Java?' The answer which most M$ fans believe in is yes. But the actual answer is no because .NET works on only Windows and maximum deployment servers in this world are not Windows (I'm not talking about development systems). Also - Java/ J2EE/ J2ME are older, bigger and more extensible than .NET standard/ compact frameworks, with many more uncountable production deployments (you don't think software companies made money out of nothing before .NET came up, and you don't think they doubled or tripled their revenues in 2-3 years after .NET came up just because of .NET). New stuff like Struts, etc keep coming up to which .NET really doesn't have an answer.

We've had many discussions on EE regarding this - a long one is posted here (also has links to many articles on the Net).

http://www.experts-exchange.com/Programming/Q_20816080.html

Anyway, let's not start off that debate :) this Q is about Javamail. And well - the answer is Java-mail is used wherever Java is used, because you want platform-independency while running your code.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT
Top Expert 2016
Commented:
Actually, re-reading my comment, it's a bit misleading. JavaMail is largely mail *client* software, practically speaking, although it can be used in mail servers.

Not sure on the statistics of mail client software, other than to say that the use of any *already written* clients other than Microsoft's is probably too insignificant to count
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
>> other than to say that the use of any *already written* clients other than Microsoft's is probably too insignificant to count

Don't forget Lotus and the others :) anyway that is because most of the users (not developers) in this world use Windows. However, let's not mislead by talking about only mail-clients. The mail API is used in applications too, and when it comes to applications, we know Java almost leads the way now :)
CERTIFIED EXPERT
Top Expert 2016

Commented:
>>anyway that is because most of the users (not developers) in this world use Windows

Yes

Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
Unfortunately. (So do I)
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
JavaMail is the standard *Java* api for handing mail
.NET components are primarily intended for use by .NET applications.
You could interchange if you wanted but its just making more work for yourself.
Using a different implementation of the protocols is also an option, but again for developing Java an impleemntation with a Java API would be far easier to use for Java development.
CERTIFIED EXPERT
Top Expert 2016

Commented:
:-)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.