Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.revinate:sendgrid-smtpapi-java

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.revinate:sendgrid-smtpapi-java

SendGrid SMTP API Java Bindings

  • 2.0.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

SendGrid SMTP API Java Bindings

This module lets you build SendGrid's SMTP API headers with simplicity.

BuildStatus BuildStatus

Requirements

Java 1.6 and later.

Installation

Maven

Add this dependency to your project's POM:

<dependency>
  <groupId>com.revinate</groupId>
  <artifactId>sendgrid-smtpapi-java</artifactId>
  <version>2.0.0</version>
</dependency>

Gradle

Add this dependency to your project's build script:

compile 'com.revinate:sendgrid-smtpapi-java:2.0.0'

Usage

Create header

import com.revinate.sendgrid.smtpapi.*;
SmtpApi header = new SmtpApiImpl();

Get header value

String headerValue = header.toSmtpApiHeader();

If you need the unescaped JSON string:

String rawHeaderValue = header.toRawSmtpApiHeader();

To

header.addSmtpApiTo("email@email.com");
// or
header.addSmtpApiTo("email@email.com", "Email User");

List<String> tos = header.getSmtpApiTos();

Substitutions

header.addValueToSubstitution("key", "value");

List<String> substitution = header.getSubstitution("key");

Unique Arguments

header.setUniqueArg("key", "value");

String arg = header.getUniqueArg("key");

Categories

header.addCategory("category");

List<String> categories = header.getCategories();

Sections

header.setSection("key", "section");

String section = header.getSection("key");

Filters

header.setSettingInFilter("filter", "setting", "value");
header.setSettingInFilter("filter", "setting", 1);

Map<String, Object> filter = header.getFilter("filter");

ASM Group ID

header.setAsmGroupId(1);

Integer groupId = header.getAsmGroupId();

Scheduling

header.setSendAt(1416427645);

Integer sendAt = header.getSendAt();

IP Pool

header.setIpPool("transactional");

String ipPool = header.getIpPool();

License

Licensed under the MIT License.

FAQs

Package last updated on 12 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc