gpt4 book ai didi

ruby-on-rails - 测试邮件列表软件的最佳方法是什么?

转载 作者:数据小太阳 更新时间:2023-10-29 07:31:23 24 4
gpt4 key购买 nike

我最近用 Ruby On Rails 编写了邮件列表软件。我想获得一些有关测试它的最佳方法的专家建议。例如,如果我可以编写一个脚本生成 10,000 个电子邮件地址,使用该软件向这 10,000 个地址发送电子邮件,然后编写一个脚本来确保电子邮件通过,那就太棒了。我不确定这有多容易/可能。

最佳答案

如果您碰巧在运行 Postfix MTA 的系统上有一个电子邮件地址,那么您可以随意使用任意大量的电子邮件地址。例如,我的常规电子邮件地址是 nr@cs.tufts.edu,但是发送到 nr+xxx@cs.tufts.edu 的邮件将根据 ~nr/.forward+xxx 的内容进行转发。当我需要收集 120 个不同的电子邮件地址时,我曾使用过此工具,因为我充当了一群其他人之间匿名通信的可信第三方。

在 Postfix 的默认配置中,手册说

mail for name+foo is delivered to the alias name+foo or to the alias name, to the destinations listed in ~name/.forward+foo or in ~name/.forward, to the mailbox owned by the user name, or it is sent back as undeliverable.

关于ruby-on-rails - 测试邮件列表软件的最佳方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/367222/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com