基于阿里云实现的快速发送短信邮件工具包 manyTool

码农软件 · 软件分类 · 短信彩信开发包 · 2019-10-11 11:13:53

软件介绍

项目介绍

多平台汇集的sdk,目前实现了基于阿里云api的短信以及邮件的封装,可以实现邮件、国内短信的发送。

基于阿里云已实现功能

  1. 邮件发送[√]

  2. 国内短信发送[√]

使用参考 //短信 System.out.println(MobileExt.sendMobileSms("***","18912344321","XX助手", "{"oId":"12","words":"45","time":"2018-8-6"}","SMS_136","***"));

//邮件 System.out.println(EmailExt.sendEmail("***", "admin@message.git.com", "rain.yuan@transn.com", "管理员","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-->

使用说明

  1. 确认 pom.xml 添加了 focus-sdk 的配置信息

  2. 阿里短信 MobileExt.sendMobileSms("","","","","","");

  3. 阿里邮件 EmailExt.sendEmail("","","","","","","");

本文地址:https://codercto.com/soft/d/16513.html

Spring技术内幕

Spring技术内幕

计文柯 / 机械工业出版社 / 2010-1-1 / 55.00元

内容简介: 本书是Spring领域的问鼎之作,由业界拥有10余年开发经验的资深Java专家亲自执笔!Java开发者社区和Spring开发者社区一致强烈推荐。 国内第一本基于Spring3.0的著作,从源代码的角度对Spring的内核和各个主要功能模块的架构、设计和实现原理进行了深入剖析。你不仅能从木书中参透Spring框架的优秀架构和设计思想,而且还能从Spring优雅的实现源码中一窥......一起来看看 《Spring技术内幕》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具