基于 C#的短信接口调用示例代码模板

2016-09-26 17:59:37 +08:00
 jiaowobaba

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Net;
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions; using System.Security.Cryptography; using System.Web; public class Test { private static readonly string DefaultUserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)";

    private static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)  
    {  
        return true; //总是接受     
    }  
 static void Main(string[] args)  
    {  
        DateTime dt = DateTime.Now; 
        string mttime = dt.ToString("yyyyMMddHHmmss");
        string pwd1 = "*************"+mttime;
  string pwd = GetMD5(pwd1)
        string content = " [阅信短信平台] 验证码 888888 ,打死也不能告诉别人哦。";
        string url = "http://IP/端口号";
1801 次点击
所在节点    C#
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/309093

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX