← 返回牧码
牧码 / 开发
邮件发送
用你的 SMTP 账号发送邮件,支持 SSL / STARTTLS,GET/POST/JSON。
开发
请求地址API ENDPOINT
https://api.muma.chat/api/mail/mail.php
✓
无需 Key
直接请求此地址即可使用。
参数说明PARAMETERS
smtp_hoststring · 必填
SMTP 主机,如 smtp.qq.com
smtp_portint · 可选
465(SSL)或 587(STARTTLS),默认 465
smtp_userstring · 必填
发件邮箱
smtp_passstring · 必填
SMTP 授权码
tostring · 必填
收件人邮箱
subjectstring · 必填
邮件主题
bodystring · 必填
邮件内容
htmlbool · 可选
1 = HTML,0 = 纯文本,默认 0