public static RestResponse SendSimpleMessage() {
RestClient client = new RestClient();
client.BaseUrl = "https://api.mailgun.net/v2";
client.Authenticator = new HttpBasicAuthenticator(
"api","key-3ax6xnjp29jd6fds4gc373sgvjxteol0");
RestRequest request = new RestRequest();
request.AddParameter("domain",
"samples.mailgun.org", ParameterType.UrlSegment);
request.Resource = "{domain}/messages";
request.AddParameter("from", "Excited User <[email protected]>");
request.AddParameter("to", "[email protected]");
request.AddParameter("subject", "Hello");
request.AddParameter("text", "Testing some Mailgun awesomness!");
request.Method = Method.POST;
return client.Execute(request);
}
uj5u.com熱心網友回復:
idhttp.post.uj5u.com熱心網友回復:
http://www.delphitop.com/html/kongjian/542.html轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/121170.html
標籤:網絡通信/分布式開發
上一篇:DEV控制元件的安裝問題
下一篇:求助:Tstoredproc控制元件StoredProcName如果以';1'結尾,運行時報‘找不到存盤程序’錯誤。
