sute.jpでは、いつでも必要な時に、24時間だけ有効なメールアドレスを取得できます。迷惑メール対策、個人情報保護にお役立てください。 表示されている文字列をそのまま使用するか、お望みのユーザ名に変更して「メールアドレスを作成する」ボタンをクリックしてください。 メールアドレスについて詳しくはFAQをご覧ください。
はじめに 今回はJavaからSendGrid公式ライブラリを使ってメールを送信する方法をサンプルコードを交えながらご紹介します。メール文面(件名、本文)への文字列埋め込み、日本語、添付ファイルなどを利用しています。 前提条件 サンプルコードを試す前に以下の環境のセットアップを完了しておいてください。 ・Java 1.8 ・gradle ・git ・SendGridアカウント 本記事の内容はUbuntu上に環境構築したものを利用しています。なお、SendGrid公式ライブラリ(sendgrid-java)はバージョン2.2.1を使用しています。 準備 コードサンプルをリポジトリからクローンします。 git clone https://github.com/sendgridjp/sendgridjp-java-example.git リポジトリ内に移動して.env.exampleをコピーします
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く