简体   繁体   English

向MySQL表中的人发送HTML电子邮件的最佳方法?

[英]Best way to send HTML email to group of people in MySQL table?

I would like to know what the best way to email a list of people (>=2000) from a MySQL database is. 我想知道从MySQL数据库通过电子邮件发送人员列表(> = 2000)的最佳方法是什么。 I would like to send an HTML email to the people retrieved from a table in this MySQL database. 我想向从此MySQL数据库中的表中检索到的人员发送HTML电子邮件。 I know that there are existing programs or "mass mailers" but I was told that using them might make my domain blacklisted. 我知道有现有程序或“大量邮件”,但有人告诉我使用它们可能会使我的域被列入黑名单。 What if I wrote a small program and made that separate the email recipients in chunks of, say, 200, and loop through these blocks...would that be a better/safer way? 如果我编写了一个小程序,并将电子邮件收件人分成200个块,然后循环遍历这些块,那会是一种更好/更安全的方式呢?

Thanks in advance, Tim 预先感谢,蒂姆

The art of getting UCE (Unsolicited Commercial Email) through the maze of spam filters changes daily. 通过垃圾邮件过滤器迷宫获取UCE(未经请求的商业电子邮件)的艺术每天都在变化。 I have a couple of suggestions: 我有几点建议:

1) Make sure your content is legitimate and professional... people will be less likely to report your stuff as spam. 1)确保您的内容合法且专业...人们将您的内容举报为垃圾邮件的可能性较小。

2) Use the SMTP server of your ISP to send the mail. 2)使用ISP的SMTP服务器发送邮件。 Most ISPs do a lot of work to ensure that their servers are not blacklisted. 大多数ISP都会做很多工作,以确保其服务器未列入黑名单。 One of the worst things you can do is send it from your own computer/workstation from a dynamic IP address (coffee shop, home cable modem), since that your computer is not in the family of known mail servers (mostly defined by special types of DNS records). 您可以做的最坏的事情之一是从您自己的计算机/工作站通过动态IP地址(咖啡店,家用电缆调制解调器)将其发送出去,因为您的计算机不在已知邮件服务器家族中(主要由特殊类型定义) DNS记录)。 Your ISP's mail server is likely able to handle a large volume of mail properly without causing issues with spam filtering/delivery. 您的ISP的邮件服务器很可能能够正确处理大量邮件,而不会引起垃圾邮件过滤/传递问题。

This could of course bring you up against your ISP's terms of service, but if you're sending the mail as a legitimate business communication you should be fine. 当然,这可能会使您违反ISP的服务条款,但是如果您将邮件作为合法的业务通信发送,则应该可以。 Check with their technical support before you send it to make sure you're doing it by the book. 在发送之前,请先咨询他们的技术支持,以确保您正在按书进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM