🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/SendGridJP/sendgridjp-go-example

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/SendGridJP/sendgridjp-go-example

Source
Go
Version
v0.0.0-20210330013454-cde6fe8d413a
Version published
Created
Source

sendgridjp-go-example

本コードはSendGrid公式Goライブラリの利用サンプルです。

使い方

git clone git@github.com:SendGridJP/sendgridjp-go-example.git
cd sendgridjp-go-example
cp .env.example .env
# .envファイルを編集してください
go run src/main/main.go

.envファイルの編集

.envファイルは以下のような内容になっています。

API_KEY=api_key
TOS=you@youremail.com,friend1@friendemail.com,friend2@friendemail.com
FROM=you@youremail.com

API_KEY:SendGridのAPI Keyを指定してください。
TOS:宛先をカンマ区切りで指定してください。
FROM:送信元アドレスを指定してください。

FAQs

Package last updated on 30 Mar 2021

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