Mailgun 凭据#
¥Mailgun credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
- 创建 Mailgun 账户。
¥Create a Mailgun account.
- 在 Mailgun 中配置 添加并验证域名,或使用提供的沙盒域名进行测试。
¥Add and verify a domain in Mailgun or use the provided sandbox domain for testing.
支持的身份验证方法#
¥Supported authentication methods
- API 密钥
¥API key
相关资源#
¥Related resources
有关服务的更多信息,请参阅 Mailgun API 文档。
¥Refer to Mailgun's API documentation for more information about the service.
使用 API 密钥#
¥Using API key
要配置此凭据,你需要:
¥To configure this credential, you'll need:
- API 域名:如果你的 Mailgun 账户位于欧洲,请选择 api.eu.mailgun.net;否则,请选择 api.mailgun.net。有关更多信息,请参阅 Mailgun 基本 URL。
¥An API Domain: If your Mailgun account is based in Europe, select api.eu.mailgun.net; otherwise, select api.mailgun.net. Refer to Mailgun Base URLs for more information.
- 电子邮件域名:输入你使用的邮件发送域名。如果你有多个发送域,请参阅 使用多个电子邮件域 了解更多信息。
¥An Email Domain: Enter the email sending domain you're working with. If you have multiple sending domains, refer to Working with multiple email domains for more information.
- API 密钥:在“设置”>“API 密钥”中查看你的 API 密钥。请参阅 Mailgun API 身份验证文档 获取更详细的说明。
¥An API Key: View your API key in Settings > API Keys. Refer to Mailgun's API Authentication documentation for more detailed instructions.
使用多个电子邮件域#
¥Working with multiple email domains
如果你的 Mailgun 账户包含多个发送域,请为每个使用的邮件域创建单独的凭据。
¥If your Mailgun account includes multiple sending domains, create a separate credential for each email domain you're working with.