Mailgun 发送邮件 API 中的 "to" 列表的最大长度是多少?
What is the maximum length of the "to" list in the Mailgun's sending email API?
我使用下面的 Python 方法通过 Mailgun 的 Sending via API 向我们的客户发送电子邮件:
def send_simple_message():
return requests.post(
"https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages",
auth=("api", "YOUR_API_KEY"),
data={"from": "Excited User <mailgun@YOUR_DOMAIN_NAME>",
"to": my_clients,
"subject": "Hello",
"text": "Testing some Mailgun awesomness!"})
当"data"中my_clients
的长度小于20时,方法return<Response [200]
,邮件投递成功。但是,当长度增长到6000+时,returns <Response [400]>
,客户端收不到邮件。
那么这个列表的最大长度是多少?我搜索了文档并用谷歌搜索,但一无所获。
当客户端数量大于此限制时,推荐的方法是什么?把客户分成几组,每组都调用这个方法?
谢谢!
最多 1000 个收件人:
https://documentation.mailgun.com/user_manual.html#batch-sending
每封电子邮件以 1000 个收件人为一组发送。
我使用下面的 Python 方法通过 Mailgun 的 Sending via API 向我们的客户发送电子邮件:
def send_simple_message():
return requests.post(
"https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages",
auth=("api", "YOUR_API_KEY"),
data={"from": "Excited User <mailgun@YOUR_DOMAIN_NAME>",
"to": my_clients,
"subject": "Hello",
"text": "Testing some Mailgun awesomness!"})
当"data"中my_clients
的长度小于20时,方法return<Response [200]
,邮件投递成功。但是,当长度增长到6000+时,returns <Response [400]>
,客户端收不到邮件。
那么这个列表的最大长度是多少?我搜索了文档并用谷歌搜索,但一无所获。 当客户端数量大于此限制时,推荐的方法是什么?把客户分成几组,每组都调用这个方法?
谢谢!
最多 1000 个收件人:
https://documentation.mailgun.com/user_manual.html#batch-sending
每封电子邮件以 1000 个收件人为一组发送。