批量电子邮件期间javamail vs sendmail性能 [英] javamail vs sendmail performance during bulk email

查看:151
本文介绍了批量电子邮件期间javamail vs sendmail性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个Java群发电子邮件应用程序来发送电子邮件,每天向用户发送50,000到100,000个。

I'm writing a Java mass emailer application to send out emails to send between 50,000 to 100,000 a day to users.

目前的计划是委托发送委托给sendmail(在本地unix服务器上)。

The current plan is to delegate the sending to delegate to sendmail (on the local unix server).

从我们的测试中,sendmail每秒最多发送5封电子邮件。

From our testing sendmail is sending a maximum of 5 emails per second.

JavaMail是一个更快的选择吗?

Would JavaMail be a faster option?

有谁知道发送电子邮件的更快捷方式。我们希望尽可能快地完成此过程。

Does anyone know what a faster way to send emails. We want to get this process out as quick as possible.

编辑:顺便说一下,pdf也将被附加

BTW, a pdf will be attached too

推荐答案

你不喜欢比较喜欢。 JavaMail将SMTP转发到最近的邮件服务器。 Sendmail是一个邮件传输代理,负责将电子邮件路由到目的地。

You're not comparing like with like. JavaMail talks SMTP to hand off to the nearest mail server. Sendmail is a Mail Transfer agent responsible for routing emails to their destination.

常见设置是使用JavaMail通过SMTP将电子邮件中继到Sendmail服务器的Java应用程序。这两个不是竞争对手,它们是一起使用的。 sendmail服务器应该能够比任何java应用程序生成它们更快地接受来自javamail的传递,但是它会以自己的速率异步传递它们。

A common setup is a java application using JavaMail to relay email via SMTP to a Sendmail server. The two are not competitors, they're used together. A sendmail server should be able to accept deliveries from javamail faster than any java application can produce them, but then it delivers them asynchronously at its own rate.

这篇关于批量电子邮件期间javamail vs sendmail性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆