基于阿里云实现的快速发送短信邮件工具包 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

Sprint

Sprint

Jake Knapp、John Zeratsky、Braden Kowitz / Simon & Schuster / 2016-3-8 / GBP 14.60

媒体推荐 “Every business leader I know worries about the same thing: Are we moving fast enough? The genius of Jake Knapp’s Sprint is its step-by-step breakdown of what it takes to solve big problems an......一起来看看 《Sprint》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具