盒盖API
返回接口列表

邮箱发送

暂无简介

GET
总调用次数:485 今日调用:431 限流策略:不限次数 返回格式:application/json

接口地址

https://api.hgovo.cn/API/yxfs

完整示例链接(含可选参数)

https://api.hgovo.cn/API/yxfs?address=收件人邮箱&yjbt=邮件标题&certno=邮件内容 换行符是<br>不是\n&qqyx=发件人邮箱&dlmy=发件人授权码&tplj=发送图片请提供链接&wjlj=发送文件请提供链接&name=发件人名称&type=json和text返回格式默认json&host=SMTP服务器 不填自动识别

请求参数

参数 类型 必填 说明
address string 必填 收件人邮箱
yjbt string 必填 邮件标题
certno string 必填 邮件内容 换行符是<br>不是\n
qqyx string 必填 发件人邮箱
dlmy string 必填 发件人授权码
tplj string 可选 发送图片请提供链接
wjlj string 可选 发送文件请提供链接
name string 可选 发件人名称
type string 可选 json和text返回格式默认json
host string 可选 SMTP服务器 不填自动识别

返回码说明

返回码 说明
200 成功

返回结果

点击「请求」按钮,查看接口返回结果

多语言调用示例

cURL
curl -X GET "https://api.hgovo.cn/API/yxfs?address=收件人邮箱&yjbt=邮件标题&certno=邮件内容 换行符是<br>不是\n&qqyx=发件人邮箱&dlmy=发件人授权码&tplj=发送图片请提供链接&wjlj=发送文件请提供链接&name=发件人名称&type=json和text返回格式默认json&host=SMTP服务器 不填自动识别"
Python
import requests

url = "https://api.hgovo.cn/API/yxfs"
params = {
    'address': 'your_address',
    'yjbt': 'your_yjbt',
    'certno': 'your_certno',
    'qqyx': 'your_qqyx',
    'dlmy': 'your_dlmy',
    'tplj': 'your_tplj',
    'wjlj': 'your_wjlj',
    'name': 'your_name',
    'type': 'your_type',
    'host': 'your_host'
}
response = requests.get(url, params=params)
print(response.text)
PHP
<?php
$url = "https://api.hgovo.cn/API/yxfs";
$params = [
    'address' => 'your_address',
    'yjbt' => 'your_yjbt',
    'certno' => 'your_certno',
    'qqyx' => 'your_qqyx',
    'dlmy' => 'your_dlmy',
    'tplj' => 'your_tplj',
    'wjlj' => 'your_wjlj',
    'name' => 'your_name',
    'type' => 'your_type',
    'host' => 'your_host'
];
$full_url = $url . (strpos($url, '?') === false ? '?' : '&') . http_build_query($params);
$result = file_get_contents($full_url);
echo $result;
?>
JavaScript
// 使用 fetch 发送GET请求
const url = new URL('https://api.hgovo.cn/API/yxfs');
url.searchParams.append('address', 'your_address');
url.searchParams.append('yjbt', 'your_yjbt');
url.searchParams.append('certno', 'your_certno');
url.searchParams.append('qqyx', 'your_qqyx');
url.searchParams.append('dlmy', 'your_dlmy');
url.searchParams.append('tplj', 'your_tplj');
url.searchParams.append('wjlj', 'your_wjlj');
url.searchParams.append('name', 'your_name');
url.searchParams.append('type', 'your_type');
url.searchParams.append('host', 'your_host');

fetch(url)
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error('请求失败:', err));
Java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class ApiRequest {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();
        String url = "https://api.hgovo.cn/API/yxfs";
        
        // 拼接请求参数
        url += "?" + "address=收件人邮箱&yjbt=邮件标题&certno=邮件内容 换行符是<br>不是\n&qqyx=发件人邮箱&dlmy=发件人授权码&tplj=发送图片请提供链接&wjlj=发送文件请提供链接&name=发件人名称&type=json和text返回格式默认json&host=SMTP服务器 不填自动识别";
        
        HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create(url))
                .GET()
                .build();

        client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
                .thenApply(HttpResponse::body)
                .thenAccept(System.out::println)
                .join();
    }
}
Go
package main

import (
	"fmt"
	"net/http"
	"net/url"
	"io/ioutil"
)

func main() {
	baseUrl := "https://api.hgovo.cn/API/yxfs"
	parsedUrl, _ := url.Parse(baseUrl)
	
	q := parsedUrl.Query()
	q.Set("address", "your_address");
	q.Set("yjbt", "your_yjbt");
	q.Set("certno", "your_certno");
	q.Set("qqyx", "your_qqyx");
	q.Set("dlmy", "your_dlmy");
	q.Set("tplj", "your_tplj");
	q.Set("wjlj", "your_wjlj");
	q.Set("name", "your_name");
	q.Set("type", "your_type");
	q.Set("host", "your_host");
	parsedUrl.RawQuery = q.Encode()
	
	resp, err := http.Get(parsedUrl.String())
	if err != nil {
		fmt.Println("请求失败:", err)
		return
	}
	defer resp.Body.Close()
	
	body, _ := ioutil.ReadAll(resp.Body)
	fmt.Println(string(body))
}
C#
using System;
using System.Net.Http;
using System.Collections.Generic;
using System.Threading.Tasks;

class Program
{
    static async Task Main()
    {
        using var client = new HttpClient();
        var url = new Uri("https://api.hgovo.cn/API/yxfs");
        
        var queryParams = new Dictionary<string, string>();
            queryParams.Add("address", "your_address");
            queryParams.Add("yjbt", "your_yjbt");
            queryParams.Add("certno", "your_certno");
            queryParams.Add("qqyx", "your_qqyx");
            queryParams.Add("dlmy", "your_dlmy");
            queryParams.Add("tplj", "your_tplj");
            queryParams.Add("wjlj", "your_wjlj");
            queryParams.Add("name", "your_name");
            queryParams.Add("type", "your_type");
            queryParams.Add("host", "your_host");
            var uriBuilder = new UriBuilder(url);
            uriBuilder.Query = new FormUrlEncodedContent(queryParams).ReadAsStringAsync().Result;
            url = uriBuilder.Uri;
        
        var response = await client.GetAsync(url);
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(result);
    }
}
Shell
# 使用curl发送GET请求
curl -X GET "https://api.hgovo.cn/API/yxfs?address=收件人邮箱&yjbt=邮件标题&certno=邮件内容 换行符是<br>不是\n&qqyx=发件人邮箱&dlmy=发件人授权码&tplj=发送图片请提供链接&wjlj=发送文件请提供链接&name=发件人名称&type=json和text返回格式默认json&host=SMTP服务器 不填自动识别"
词库
# Secluded/QRspeed/ClousX6
A:$访问 https://api.hgovo.cn/API/yxfs?address=收件人邮箱&yjbt=邮件标题&certno=邮件内容 换行符是<br>不是\n&qqyx=发件人邮箱&dlmy=发件人授权码&tplj=发送图片请提供链接&wjlj=发送文件请提供链接&name=发件人名称&type=json和text返回格式默认json&host=SMTP服务器 不填自动识别$
Kotlin
import okhttp3.FormBody
import okhttp3.OkHttpClient
import okhttp3.Request

fun main() {
    val client = OkHttpClient()
    val url = "https://api.hgovo.cn/API/yxfs"
    
    // GET 请求拼接参数
val requestBuilder = Request.Builder().url(url + "?" + "address=收件人邮箱&yjbt=邮件标题&certno=邮件内容 换行符是<br>不是\n&qqyx=发件人邮箱&dlmy=发件人授权码&tplj=发送图片请提供链接&wjlj=发送文件请提供链接&name=发件人名称&type=json和text返回格式默认json&host=SMTP服务器 不填自动识别")
val request = requestBuilder.get().build()
    
    client.newCall(request).execute().use { response ->
        if (!response.isSuccessful) throw RuntimeException("请求失败: ${response.code}")
        println(response.body?.string())
    }
}