manyTool 项目介绍 介绍
项目介绍
多平台汇集的sdk,目前实现了基于阿里云api的短信以及邮件的封装,可以实现邮件、国内短信的发送。
-
邮件发送[√]
-
国内短信发送[√]
使用参考 //短信
System.out.println(MobileExt.sendMobileSms(“”,”18912344321”,”XX助手”,
“{“oId”:”12”,”words”:”45”,”time”:”2018-8-6”}”,”SMS_136”,””));
//邮件 System.out.println(EmailExt.sendEmail(“”,
“[email protected]”,
“[email protected]”,
“管理员”,”123”,”测试邮件”,””));
pom.xml 粘贴即可使用。
<dependency> <groupId>com.github.yuanxy</groupId> <artifactId>focus-sdk</artifactId> <version>1.0.0</version> </dependency>
注意如果你项目有用到 httpcomponents 请注意你的版本,如果运行报错,请复制下面的配置到pom.xml
<dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> <version>4.3.1</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpmime</artifactId> <version>4.3.1</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient-cache</artifactId> <version>4.3.1</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.1</version> </dependency> <!--apacheHttp-->
-
确认 pom.xml 添加了 focus-sdk 的配置信息
-
阿里短信 MobileExt.sendMobileSms(“”,”“,”“,”“,”“,”“);
-
阿里邮件 EmailExt.sendEmail(“”,”“,”“,”“,”“,”“,”“);
manyTool 项目介绍 官网
https://gitee.com/yxyun/focus-sdk
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。