aspose file tools*
The moose likes Java in General and the fly likes Need Open Source email sending application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need Open Source email sending application" Watch "Need Open Source email sending application" New topic
Author

Need Open Source email sending application

Farrukh Jalil
Greenhorn

Joined: Jul 25, 2011
Posts: 7
We need an open source solution for sending emails which can send bulk emails to thousand of users in efficient way with less time. The application log sending status for each recipant in a database so we can knonw about those recipant(s) didn't get that particular email. The sending email may schedule for a particular time.

Thank you

Farrukh Jalil
Technology Consultant
MAZARS Pakistan

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

so, you want an open source api for mail application? : JavaMail API
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

and Welcome to JavaRanch
Farrukh Jalil
Greenhorn

Joined: Jul 25, 2011
Posts: 7
Hi
Yes an open source application/api which deals with thousands of emails. JAVAMail is using single pool/queue to send email. I need a multi-threaded application which can send emails using multiple pools for minimizing load and time.


regards
Farrukh
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

you can spawn threads to send an email parallelly!
Farrukh Jalil
Greenhorn

Joined: Jul 25, 2011
Posts: 7
OK - but all the thread use same message queue for they have their separated message queue?

If each has its own queue then my problem will be solve.... what you say?
Farrukh Jalil
Greenhorn

Joined: Jul 25, 2011
Posts: 7
Got an open source enterprise email server Apache James, but I have a question regarding the email server

"Can we add custom fields in database tables (spool/inbox) and insert or update the tables using james when an email shoot?"

I need to create "email log" for bulk emails with particular event in our portal.



What you suggest?

Regards,
Farrukh Jalil
Consultant Mazars Pakistan
Arun Chidam
Ranch Hand

Joined: May 08, 2006
Posts: 79
Hi Farrukh,

I don;t know about Apache James, but you can accomplish the same using Java Mail API.
1.Create a table with data structure TO,From,Subject,Body,Attachment,WhenSent,etc..(i.e as columns).
2.For every email to be sent, insert those values into MailLog table.
3.Later run a Java program (say for every 2mins) which loops through each unsent mail and fires a email using mail API and updates the whensent column once delivered(you can also think of MultiThreaded coding here for better efficiency).


Thanks


SCJP 1.4, SCWCD 1.4
Farrukh Jalil
Greenhorn

Joined: Jul 25, 2011
Posts: 7
Hi Arun,

Your idea is superb, I will try it out using Java Mail API, but here one thing comes in my mind that
will the said API support arround 15,000 bulk emails?

Thanks for the reply,

regards,

Farrukh
Arun Chidam
Ranch Hand

Joined: May 08, 2006
Posts: 79
15,000 bulk emails??...how do you know which email is sent and which not when API supports Bulk email?...

Refer Java API link here and faq.

Farrukh Jalil wrote:Hi Arun,

Your idea is superb, I will try it out using Java Mail API, but here one thing comes in my mind that
will the said API support arround 15,000 bulk emails?

Thanks for the reply,

regards,

Farrukh
Farrukh Jalil
Greenhorn

Joined: Jul 25, 2011
Posts: 7
The solution comes with Apache James enterprise email server in which spooling repositery maintains for every email. but I need to customize the database repositery i.e. the table with my columns like EventID, EmailJobID etc. That's why, I was asking about apache james. my last option is to use java mail API because I have to do lots of work for multi-threaded email sending mechanism with logging.

Nice to see the reply guys. Its very helpful to discuss issues in a friendly environmnent.

regards,
Farrukh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Open Source email sending application