专业的邮件发送 API 服务,支持验证码发送、通知推送等功能
采用 HTTPS 加密传输,确保邮件发送安全可靠
高性能邮件发送引擎,毫秒级响应速度
详细的发送记录,实时追踪邮件状态
RESTful API 设计,简单易用,快速集成
通过以下表单测试邮件发送功能:
| 参数名 | 类型 | 是否必填 | 描述 | 默认值 |
|---|---|---|---|---|
| to_email | string | 是 | 收件人邮箱地址 | - |
| subject | string | 是 | 邮件主题 | - |
| content | string | 是 | 邮件内容(支持HTML) | - |
| type | string | 否 | 邮件类型 | notification |
curl -X POST -H "Content-Type: application/json" \
-d '{"to_email":"test@example.com","subject":"测试邮件","content":"<h1>这是一封测试邮件</h1>"}' \
https://mail.jnqj.net/api.php?action=send
{"code":200,"message":"邮件发送成功","log_id":1}
| 参数名 | 类型 | 是否必填 | 描述 | 默认值 |
|---|---|---|---|---|
| to_email | string | 是 | 收件人邮箱地址 | - |
| code | string | 是 | 验证码内容 | - |
| subject | string | 否 | 邮件主题 | 您的验证码 |
curl -X POST -H "Content-Type: application/json" \
-d '{"to_email":"test@example.com","code":"123456"}' \
https://mail.jnqj.net/api.php?action=send_verification
{"code":200,"message":"邮件发送成功","log_id":2}
| 参数名 | 类型 | 是否必填 | 描述 | 默认值 |
|---|---|---|---|---|
| to_email | string | 是 | 收件人邮箱地址 | - |
| title | string | 是 | 通知标题 | - |
| message | string | 是 | 通知内容 | - |
curl -X POST -H "Content-Type: application/json" \
-d '{"to_email":"test@example.com","title":"测试通知","message":"这是一条测试通知"}' \
https://mail.jnqj.net/api.php?action=send_notification
{"code":200,"message":"邮件发送成功","log_id":3}
| 参数名 | 类型 | 是否必填 | 描述 | 默认值 |
|---|---|---|---|---|
| limit | int | 否 | 每页记录数 | 20 |
| offset | int | 否 | 偏移量 | 0 |
curl https://mail.jnqj.net/api.php?action=get_logs&limit=10
{"code":200,"data":[{"id":1,"to_email":"test@example.com","subject":"测试邮件","content":"<h1>这是一封测试邮件</h1>","type":"notification","status":"success","error_msg":null,"create_time":"2023-01-01 12:00:00","update_time":"2023-01-01 12:00:00"}]}
本系统是一个基于 PHP + MySQL 开发的邮箱系统,专门提供 API 接口用于发送电子邮件,如发送电子验证码、发送通知等。
如有任何问题或建议,请通过以下方式联系我们: