how to build a mail server in java
greetings all i have an app(spring+hibernate) that needs to send thousands of emails simultaneously and i was told that the best solution here is to have a mail server i don't have an开发者_JAVA技巧y idea where to start or if there's a framework or a service that is better so please guys give me some info where to start, thank you.
You don't build a mail server. You use the JavaMail API to access a mail server (SMTP server) in order to send emails. Here is an explanation of the JavaMail API.
Use Java mail api to send mail that you can do through ultimately you need an SMTP server to deliver the mail, and if you want it local you can use iis SMTP mail, hmail server or other available SMTP servers, and need to configure it correctly to send lots of mail.
check out for sending mail using Java
http://www.javacommerce.com/displaypage.jsp?name=javamail.sql&id=18274
http://www.tutorialspoint.com/java/java_sending_email.htm
http://www.javapractices.com/topic/TopicAction.do?Id=144
精彩评论