php批量邮件限制

发布于 2024-10-03 07:50:35 字数 183 浏览 7 评论 0原文

我需要向潜在客户发送约 20k 封电子邮件,并且需要最好的方法来避免:

  • 服务器崩溃
  • 被放入垃圾邮件发送者列表中

我搜索了一些论坛,人们说最好以 1k 包的形式发送邮件 但我的问题是我应该设置发送每个 1k 之间的延迟是多少?我的意思是 1k/天或 1k/小时或 1k/分钟等。

I need to send about ~20k emails to potential clients and need the best way to avoid:

  • server crash
  • being put in spammers list

I've searched a few forums and people said it's best to send mails in 1k packages
but my question is what delay between sending each 1k should I set? I mean 1k/day or 1k/hour or 1k/min etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

你是我的挚爱i 2024-10-10 07:50:35

我最近必须构建系统才能做到这一点,这是我们选择的解决方案:

1-管理系统设置电子邮件并将其存储在数据库中。

2- 我们在邮件服务器上设置了一个无回复帐户以获取退回邮件。

3-我们在伟大的邮件库 swiftmailer (swiftmailer.org) 上构建了一个小代码。

4- 我们通过 cron 运行我们构建的脚本,并以每分钟 50 封的包发送邮件(如果同一分钟内从同一地址/服务器发送了太多电子邮件,hotmail 很可能会将电子邮件标记为垃圾邮件)。我们将每个 swiftId 存储在邮件数据库中

5- 在邮件发送脚本运行时,我们检查无回复邮箱中的退回邮件或其他错误,并相应地在邮件表中标记我们的邮件(状态:1 - 成功,2 - 无效电子邮件,3 - 退回)

6- 当数据有状态并且最后一次更改至少在过去 10 分钟之前进行时,我们会在主系统中同步数据(在用户访问系统的该部分时),以限制更改系统中的状态。 (同步脚本可以改变主系统中某个项目的状态,但10分钟的延迟降低了改变的风险)

I recently had to build system to do so, here is the solution we chose :

1- The management system setup emails and store them in a database.

2- We setup a no-reply account on our mail server to get the bounces back.

3- We build a small code over the great mailing library swiftmailer (swiftmailer.org).

4- We run the script we build through a cron and send mails in packages of 50 per minute (hotmail will most likely flag email as spam if too much emails are sent from the same adresse/server in the same minute). We store each swiftId i the mail database

5- At the runtime of the mail sending script we check for bounces or other errors in our no-reply mailbox and flag our messages in our mail table accordingly (status : 1 - success, 2 - invalid email, 3 - bounces)

6- We sync back our data (upon user accessing the section of the system) in the main system when they have a status and that the last change was made at least 10 minutes in the past to limit the change of states in the system. (the synchronisation script can change the status of an item in the main system, but the 10 minutes delay reduce the risk of changes)

夜吻♂芭芘 2024-10-10 07:50:35

我认为你的 1K 东西是转移注意力的东西。有很多类似的问题都有很好的答案,看看这些:

如何确保以编程方式发送的电子邮件不会自动标记为垃圾邮件?

避免被网络邮件公司阻止群发/批量发送电子邮件?

发送群发请求电子邮件

请注意,避免邮件被标记为垃圾邮件的首要要求是不要发送垃圾邮件。您的描述听起来很像垃圾邮件,在这种情况下,再多的巧妙技巧也无济于事。

如果您实际上没有发送垃圾邮件,请选择专业组织,例如 http://www.campaignmonitor.com/http://www.mailchimp.com/ 可能比您需要的时间便宜正确地执行此操作。

I think your 1K thing is a red herring. There have been a number of similar questions asked with good answers, have a look though these:

How do you make sure email you send programmatically is not automatically marked as spam?

Avoid being blocked by web mail companies for mass/bulk emailing?

Sending solicited mass email

Note that the primary requirement to avoid being your mail being marked as spam is NOT TO SEND SPAM. Your description sounds a lot like spam, in which case no amount of clever tricks will help you.

Providing you are not actually sending spam, a professional organisation such as http://www.campaignmonitor.com/ or http://www.mailchimp.com/ is probably cheaper than the amount of time you will require to do this properly.

千寻… 2024-10-10 07:50:35

最好的选择是将其外包给专家。

群发邮件有很多微妙之处,很容易出错。

最好的情况是您的服务器被列入电子邮件黑名单 - 这意味着从现在起您的所有邮件都会被作为垃圾邮件分类。最坏的情况是罚款和/或监禁,具体取决于您当地的法律和收件人居住地的法律。

Your best bet is to farm it out to specialists.

There's a whole load of subtleties about mass mailing that are easy to get wrong.

Best case is that your server gets put on an email blacklist - meaning all your mails from now on get binned as spam. Worst case is fines and/or jail time, depending n your local laws and the laws where the recipients live.

眼波传意 2024-10-10 07:50:35

当涉及到被放入垃圾邮件发送者列表时,问题是来自同一发件人的有多少(非常)相似的邮件到达某个主机。如果您在短时间内用数千封邮件淹没雅虎邮件帐户,那么您肯定很快就会出现在他们的列表中。

您可以做什么:付费请专业服务人员为您寄出邮件。他们通常与大型提供商签订合同,这样您就不会被列入任何人的黑名单(不过,这会花费您金钱)。
如果您从服务器发送它们,请确保“反向 DNS 查找”你的服务器已激活 - 我不知道是否再检查过,但这曾经给我带来了困难。

如果您的邮件不需要在某个时间发出,我会以很小的包裹发送邮件,例如每秒不超过一封邮件,连续发送的邮件不会太多。然后等待一定的时间,重复,直到所有邮件都发送完毕。
我以前工作的一家公司,发送的邮件不会超过 200 封,然后等待半个小时,程序才会继续。据我所知,我们从未被列入黑名单。

When it comes down to being put in spammers lists, the question is, how many (very) similar mails from the same sender reach a certain host. If you flood yahoo-mail-accounts with thousands of mails within a short period of time, you can be sure to be on their list shortly.

What you can do: pay a professional service to send out the mails for you. They usually have contracts with the big providers so you don't end up on anyones blacklist (will cost you money, though).
If you're sending them out from your server, make sure the "reverse DNS lookup" for your server is activated - I don't know if that's checked any more but it gave me a hard time once.

If your mails don't need to be sent out at a certain time, I'd send the mails in very small packages, e.g. not more than one mail per second, not too much in a row. Then wait for a certain amount of time and repeat until all mails have been sent.
A company I used to work for would send out not more than 200 and then wait half an hour before the program proceeded. As far as I know, we never ended up on some blacklist.

揽月 2024-10-10 07:50:35

垃圾邮件列表已经得到了很好的回答,但只要不炸毁您的服务器,答案通常是相同的。使用可以为您执行此操作的服务。

如果您绝对必须自己发送这么多电子邮件,那么您需要通过某种后台服务来完成。这可以用任何东西编写(前提是您不是简单地购买现成的众多软件之一),但理想情况下它应该是多线程的。

您的管理应用程序不应该发送这些电子邮件...而应该将它们排队到数据库或其他东西中。

不过,为什么要重新发明轮子呢?使用现成的东西可以节省很多时间。

The spam list has been well answered, but as far as not bombing out your server, the answer is generally the same. Use a service that does this for you.

If you absolutely must send this volume of e-mail on your own, you want to do it with some sort of background service. This can be written in anything (provided that you don't simply buy one of the many pieces of software off the shelf), but ideally it should be multi-threaded.

Your management application should not be sending these e-mails... only queuing them up in a database or something.

Again though, why reinvent the wheel? You'll save yourself a lot of time by going with something off-the-shelf.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文