Java Mail

Hi Guys,

I'm new using JavaMail APIs.

Can i create a web based application that can send email and some files as attachments to an email address i.e imap or pop3 or smtp etc.
And whether the recipient receives the files in proper format i sent him?

Can i send any type of file as an attachment or is there any restriction on that?

Thankz.
LVL 10
Jagadeesh MBig Data and Splunk ArchitectAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

InteractiveMindCommented:
You should be able to send any attachment.
javajwsCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
liviutudorCommented:
JavaMail is a API to allow the *ANY* Java application (either GUI-based or server-side component) to send messages. It offers support for normal internet mail -- via SMTP (for sending) and POP3 and IMAP (for receiving). It uses a high-level set of interfaces and abstract classes which your application would use (so it hides the actual implementation of the protocol), however, underneath these interfaces there are concrete classes implementing the communication/etc for the protocol selected. These classes will also handle encoding the files you want to attach (which can be any file types!) when sending, so the files don't get corrupted.
So in terms of what you can send, there are no restrictions -- however, be aware that a lot of mail servers limit the type of files that can be attached (e.g. no exe,dll etc -- for virus protection purposes) and also some limit the maximum size of the message (for spam protection).
Hope these make sense.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.