Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing an email server in java

What all language components will have to be used for implementing an email service system using java?

like image 361
abson Avatar asked Mar 29 '10 08:03

abson


People also ask

What is the role of email server Java?

The JavaMail is an API that is used to compose, write and read electronic messages (emails). The JavaMail API provides protocol-independent and plateform-independent framework for sending and receiving mails. The javax. mail and javax.

Can we send email using Java?

Sending emails using Simple Java Mail is pretty straightforward. First, you need to create an email object using EmailBuilder . Then, you need to create a mailer object using MailerBuilder and pass the email object to the mailer object to send the email.

What is SMTP server in Java?

SMTP is an acronym for Simple Mail Transfer Protocol. It is an Internet standard for electronic mail (e-mail) transmission across Internet Protocol (IP) networks. SMTP uses TCP port 25.


1 Answers

If you want to implement an email server (SMTP, IMAP, POP3) - there is already Apache JAMES. It's open-source, so you can look into its sources if you insist on making one.

If you want to just send emails, having an already installed SMTP server, then use Simple Java Mail or commons-email. Both sit on top of Jakarta Mail (previously JavaMail) and are very developer-friendly.

like image 171
Bozho Avatar answered Oct 05 '22 04:10

Bozho