# Try our API. Copy & run this in your terminal. 
curl -s --user 'api:d5e76748-7b9a-11e9-bb91-f21898b25098' \
'https://api.hedwi.com/mail/example.hedwi.com' \
-F from='user@example.hedwi.com' \
-F to='support@hedwi.com' \
-F subject='Hello' \
-F text='Testing email from Hedwi!' 
                        
                             
import (
	"fmt"
	b64 "encoding/base64"
	"github.com/levigross/grequests"
)
func main() {
    auth := b64.StdEncoding.EncodeToString([]byte("api:d5e76748-7b9a-11e9-bb91-f21898b25098"))
    ro := &grequests.RequestOptions{
        Headers: map[string]string{"Authorization": "Basic " + auth},
        Data: map[string]string{ "from": "user@example.hedwi.com",   "to": "support@hedwi.com",
                                 "subject": "Hello", "text": "Testing email from Hedwi!",},
    }
    r, _ := grequests.Post("https://api.hedwi.com/mail/example.hedwi.com", ro)
    fmt.Println(r.String())
} 
                        
                             
import requests

def send_email():
    return requests.post(
        "https://api.hedwi.com/mail/example.hedwi.com", 
        auth = ("api", "d5e76748-7b9a-11e9-bb91-f21898b25098"),
        data = {
            "from": "user@example.hedwi.com>",
            "to": "support@hedwi.com",
            "subject": "Hello",
            "text": "Testing email from Hedwi!"}) 
                        
                             
# Try running this locally.
function sendEmail() {
    $data = array("from" => "user@example.hedwi.com>", "to" => "support@hedwi.com",
                  "subject" => "Hello", "text" => "Testing email from Hedwi!");
    $ch = curl_init("https://api.hedwi.com/mail/example.hedwi.com");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLINFO_HEADER_OUT, true);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt($ch, CURLOPT_USERPWD, "api:d5e76748-7b9a-11e9-bb91-f21898b25098");
    $result = curl_exec($ch);
    curl_close($ch);
    return $result;
} 
                        
                             
# Try running this locally.
public static RestResponse SendSimpleMessage() {
    RestClient client = new RestClient("https://api.hedwi.com");
    client.Authenticator = new HttpBasicAuthenticator("api","d5e76748-7b9a-11e9-bb91-f21898b25098");
    RestRequest request = new RestRequest();
    request.AddParameter("domain", "example.hedwi.com", ParameterType.UrlSegment);
    request.Resource = "mail/{domain}";
    request.AddParameter("from", "user@example.hedwi.com");
    request.AddParameter("to", "support@hedwi.com");
    request.AddParameter("subject", "Hello");
    request.AddParameter("text", "Testing email from Hedwi!");
    request.Method = Method.POST;
    return client.Execute(request);
} 
                        
                             
# Try running this locally.
def send_simple_message
  RestClient.post "https://api:d5e76748-7b9a-11e9-bb91-f21898b25098"
  "@api.hedwi.com/mail/example.hedwi.com",
  :from => "user@example.hedwi.com",
  :to => "support@hedwi.com",
  :subject => "Hello",
  :text => "Testing email from Hedwi!"
end 
                        

send

5分钟快速接入

复制粘贴 轻松配置DNS记录

HTTP接入 几行代码 快速集成

SMTP接入 无需配置 轻松集成

无需代码 轻松拥有域名邮箱

配置转发 自动转发到常用邮箱

邮件代收 邮件汇总

mail

智能收信、转发

code

方便易用的模板

bolt

稳定快速的服务

lock

安全可靠的传输