LoginSignup
2
0

More than 1 year has passed since last update.

Heroku Add-onのSendGridにログインできないトラブル

Posted at

SendGridにログインできない

HerokuのAdd-onで入れたSendGridにHeroku管理画面から飛ぶと「アクセスが拒否されました」と出てダッシュボードが見られない状態になりました。(下記ブログの「1.SendGridにログインできない」に該当)

こちらの記事の解決方法は「アプリを削除してやり直す」というもの。初心者なのでまた動かないところが出てきたら嫌だな…と思ったのですが、仕方ないのでアプリを削除して一からやり直しました。

ログインできないトラブル再現

またこれ!!:innocent:
スクリーンショット 2022-01-18 11.33.20.png

またやり直すはさすがに嫌だったので、サポートに問い合わせることにしました。

SendGridサポートに問い合わせる(英語)

ログイン画面で出てきたSupportリンクから問い合わせました。上記記事にあるようにConfig Varsかコマンドheroku config:get で確認したユーザ名+パスワードを入れると画像のようSupportへのリンクが出ます。

↓これ
スクリーンショット 2022-01-18 15.40.54.png

サポート連絡画面のスクショを取るのを忘れてしまったのですが、メールアドレスを入れるのと、トラブルを説明してくださいって感じだったと思います。文例はコチラ

I use the Sendgrid Heroku Add-on. I can't open the dashboard from Sendgrid link on Heroku resource tab, and when I tried to login I got message "You are not authorized to access SendGrid, please contact Support". My username is appXXXXXXX@heroku.com (←ここに自分のユーザ名を入れる) 訳 HerokuのSendGridアドオンからダッシュボードを開こうとしたけど開けませんでした。ログインしようとしたら"~~~"というメッセージが出ました。ユーザ名はappXXXXXXX@heroku.comです。

メールで色々質問される:scream_cat:

サポートから次のようなメールが来ました。色々聞かれていて面倒ですが、学習用などの場合簡単に答えられます!例文は下にあります。

Hello,

Thank you for your interest in a Twilio SendGrid account! 

Since this account was created through one of our Reseller platforms, we will need some additional information to ensure your account adheres to the Twilio SendGrid Email Policy. Please reply with the following:

1. The business you are developing email services for. Please include:
a) The official website of the company and/or verified social media site.
b) The company's business model and products/services offered.
c) Your full  name and association with the company, including your business title, a publicly available source that verifies your role (such as a LinkedIn profile), and/or an email address with the same domain as the business URL listed above.

2. Please outline your use case, including:
a) What type of emails do you intend to send to your customers?  Will they be transactional or marketing?
b) A link or screenshot to your sign-up page where your customers opt-in to receive emails.
c) A content sample email message by way of a link or attachment.
If you are sending marketing emails, please ensure the following is visible in your example:
- Unsubscribe link
- Physical mailing address
- Privacy Policy link


3) Do you have any additional SendGrid accounts, be it stand alone or another associated with Heroku[Azure/plug in reseller here]? If so please include them in your response. 

Thanks in advance for taking time to reply to our email, we look forward to hearing from you soon!

Best Regards,

Twilio Consumer Trust Team

リセラー(Heroku)から作られたアカウントなのでメールポリシーに即しているか確認したいとのこと。最初から普通に使える人もいるのに何でだよ?!と思ったけど、とにかくさっさと利用したいのでおとなしく答えることとします。

  1. The business you are developing email services for. Please include:

訳)メールサービスを利用するビジネスについて、下記をお答え下さい。

a) The official website of the company and/or verified social media site.

a)事業のオフィシャルサイトや公認済みのSNSアカウント

b) The company's business model and products/services offered.

b)会社のビジネスモデルと商品/サービス

c) Your full name and association with the company, including your business title, a publicly available source that verifies your role (such as a LinkedIn profile), and/or an email address with the same domain as the business URL listed above.

c)氏名と会社での役職、LinkedInプロフィール等の会社とのつながりが分かるソースまたは社用メールアドレスでドメインがそれと分かるもの

  1. Please outline your use case, including:

ユースケースの概要について下記の点をお答え下さい。

a) What type of emails do you intend to send to your customers? Will they be transactional or marketing?

a)送信するメールの用途は何ですか? トランザクションもしくはマーケティングどちらですか?

b) A link or screenshot to your sign-up page where your customers opt-in to receive emails.

b)ユーザーがメール受信を申し込む画面のスクリーンショット

c) A content sample email message by way of a link or attachment.
If you are sending marketing emails, please ensure the following is visible in your example:
- Unsubscribe link
- Physical mailing address
- Privacy Policy link

c) 送信するメールのサンプルをリンクか添付にてお送り下さい。
マーケティング用メールの場合は下記が含まれていなければいけません。
・購読解除用リンク
・メール送信アドレス
・プライバシーポリシーへのリンク

3) Do you have any additional SendGrid accounts, be it stand alone or another associated with Heroku[Azure/plug in reseller here]? If so please include them in your response.

3) 他にSendGridのアカウントをお持ちですか? HerokuやAzure等のリセラーを含めてアカウントをお知らせください。

つまり、SendGridから悪質なメールを送るのは許さん! ということらしい

ビジネスとしての使用ではなく個人利用の場合はこんな感じでいいかと。

返答例

1. I use this service only for a non-commercial purpose. My intention is to learn. My full name is XXXXXXXXX.
#利用目的は学習で、非商業利用のみです。氏名はXXXXXXです。

2. a) emails for users to sign-up by a link.  b) see below. c) the email is "Please complete your registration via the link below." and a link. See below as a code example.
#2. a)サインアップ用のリンク送信のためのメールです。b)下にスクショを貼ります。c) メール文面は「下記のリンクより登録を完了してください」です。コードを下に貼ります。

3. Only for this Heroku app's add-on.
#Heroku add-onのみです。

Best regards,
(名前)

b)
#サインアップ画面のスクショ

c)
メール送信内容を含んだコード

その後、”Thanks for the additional information! Your SendGrid account has been activated, and can now be used to send email.” という内容の返答が来て終了です。

結論

アプリ作り直しが嫌ならメール問い合わせしよう!
Google翻訳等を駆使すれば英語が多少苦手でも問題ないと思います。

商用利用される方はSendGridのポリシーに沿った回答をすれば問題無いと思います。送られてくるメールにポリシーへのリンクもあるので、何度も聞き返される場合はひっかからないように確認してみるといいかと思います。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0