Start Me
API Stats
累计调用:117184
自定义邮箱发信
GET自定义你的邮箱账号和发信服务器 在线给你托管发信
接口地址:
https://api.qster.top/API/v1/cumail
接口示例:
https://api.qster.top/API/v1/cumail/?qskey=qstertop&name=客源API&adress=&title=标题&content=内容&host=mail.pissmail.com&port=465&username=keyuan@pissmail.com&password=123456&html=true&htmltitle=&template=1&logo=图标logo
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| adress | string | 是 | 对方邮箱地址 |
| title | string | 是 | 标题 |
| content | string | 是 | 发送内容 |
| host | string | 是 | 发信地址 |
| port | string | 是 | 发信端口 如465 |
| username | string | 是 | 账号名称 |
| password | string | 是 | 账号密码 是授权码,不是登录密码 |
| html | string | 否 | false为文本格式发信 true为网页格式发信 |
| template | string | 否 | 网页格式模板 为数字 |
| logo | string | 否 | 网页格式发信时,所带的图片logo |
| htmltitle | string | 否 | 网页发信的页面标题 |
| name | string | 是 | 发信人的名称 |
| qskey | string | 是 | |
| 免费密钥: qstertop | 建议注册账号获取密钥 延迟3秒返回响应,白名单不受影响 | 该密钥会限速影响体验 查看速率 | 当前速率:150次/300秒 可联系管理员过白账号 |
响应参数
| 参数 | 说明 |
|---|---|
| 无 | 请自行调用 |
| code | 200正常400失败 查看更多 |
代码示例
自行调用测试 <?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qster.top/API/v1/cumail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => [
"adress" => "对方邮箱地址",
"title" => "标题",
"content" => "发送内容",
"host" => "发信地址",
"port" => "发信端口 如465",
"username" => "账号名称",
"password" => "账号密码 是授权码,不是登录密码",
"html" => "false为文本格式发信 true为网页格式发信",
"template" => "网页格式模板 为数字",
"logo" => "网页格式发信时,所带的图片logo",
"htmltitle" => "网页发信的页面标题",
"name" => "发信人的名称",
"qskey" => "qstertop",
],
CURLOPT_HTTPHEADER => [
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0",
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
?>
import requests
url = "https://api.qster.top/API/v1/cumail";
params = {
"adress" : "对方邮箱地址",
"title" : "标题",
"content" : "发送内容",
"host" : "发信地址",
"port" : "发信端口 如465",
"username" : "账号名称",
"password" : "账号密码 是授权码,不是登录密码",
"html" : "false为文本格式发信 true为网页格式发信",
"template" : "网页格式模板 为数字",
"logo" : "网页格式发信时,所带的图片logo",
"htmltitle" : "网页发信的页面标题",
"name" : "发信人的名称",
"qskey" => "qstertop"
}
response = requests.get(url, params=params)
print(response.text)
function fetchData(url, params) {
const queryString = Object.keys(params)
.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
.join('&');
const fullUrl = `${url}?${queryString}`;
fetch(fullUrl)
.then(response => response.text())
.then(data => {
const resultElement = document.createElement('pre');
resultElement.textContent = data;
document.body.appendChild(resultElement);
})
.catch(error => console.error('Error fetching data:', error));
}
// 示例用法
const url = "https://api.qster.top/API/v1/cumail";
const params = {
"adress" : "对方邮箱地址",
"title" : "标题",
"content" : "发送内容",
"host" : "发信地址",
"port" : "发信端口 如465",
"username" : "账号名称",
"password" : "账号密码 是授权码,不是登录密码",
"html" : "false为文本格式发信 true为网页格式发信",
"template" : "网页格式模板 为数字",
"logo" : "网页格式发信时,所带的图片logo",
"htmltitle" : "网页发信的页面标题",
"name" : "发信人的名称",
"qskey" => "qstertop"
};
fetchData(url, params);
在线调试
小小赞助支持