NetCore 阿里大于发送短信
使用阿里大于API发送短信,但阿里没有提供NetCore 的API,自己看了下源码重写了发短信这个部分 public class MessageSender { private readonly string _appKey; private readonly string _appSecret; private readonly string _serverUrl; public MessageSender(string url, string appKey, string appSecret) { _serverUrl = url; _appKey = appKey; _appSecret = appSecret; } public string SmsType { get; set; } = "normal"; public string SmsFreeSignName { get; set; } = "生日提醒"; public string SmsParam { get; set; } public string RecNum { get; set; } public string SmsTemplateCode { get; set; } = "SMS_24695114"; public string GetApiName() { return "alibaba