I am running a webapp on Apache Tomcat. I want my app to send out an email to the users, for certain actions. I have tried using Java Mail, but I am not happy with performance.
I would like to use an external service for the same. I came across MailChimp, but realized, it doesn't suit my requirements, as I want to send the mail IMMEDIATELY, rather than later, as a part of a campaign. I want something that will let me send a mail to an 开发者_运维技巧id, IMMEDIATELY.
Can anyone here, suggest any service, for this? Any reviews/past experiences? Will be very appreciated.
Cheers, RD
Edit : Thanks all for the suggestions. But I don't want to continue with my code for sending out emails. I have noticed issues with my email id getting blocked, infrequent delays of upto 3 hours before delivery of email etc. I want to use a webservice, which helps me send out mails. That is what, my question is.
Solution :
Thanks to all the help from the people here, mostly to JonLim, I zeroed in on PostageApp and PostmarkApp. However, finally settled on Postmark, because they seemed to have an easier Java client! I blogged a post on how I configured and integrated my webapp here.You have plenty of email service providers at your disposal:
- PostageApp (Ours!)
- SendGrid
- PostmarkApp
- Amazon SES
Figure out which one suits your needs and take your pick!
(Full Disclosure: I am the Product Manager of PostageApp.)
The only issue with the java mail API is that it's not very developer-friendly. For that purpose there is commons-email. As for performance - its performance is fine - it just creates a raw SMTP request to the SMTP server. So the problem must be either in your code or in your SMTP server.
I think the first thing you should find out the source of the slowness (profiling your application). That will help determine how to improve it.
That being said, you should definitely take a look at your MTA configuration. I use postfix and it's fast, secure, and easy to configure and maintain.
精彩评论