3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Deviseとかメール認証使った時にSMTPのテストメールしたい場合に便利なやつ(Rails以外でもOK)

Posted at

登録とかでメール認証を作りたいんだけど、テスト用にフリーメール登録してSMTP設定して・・・
とか面倒だなーってときに便利なサイト発見
Mailtrap.io - Fake smtp testing server.Dummy smtp email testing

使い方は簡単。
無料登録してログインするとこんな画面が表示されるので、Demo indexのリンクをクリックすると、
mailtrap.png
こんな感じで設定画面が表示されます。
mailtrap2.png
あとはIntegrationsのところで言語を選べば、すぐ下に設定が表示されるので、それをコピペするだけ。

設定のところにこんな感じで書かれているので、そのファイルに追記してあげるだけ。

In config/environments/*.rb specify ActionMailer defaults for your development or staging servers:

Rails開発環境だったらここかな。
config/environments/development.rb

あとは普通にアプリケーションで操作してメール飛ばすと、
この2つ目の画像の左側にメールがどんどん貯まっていきます。

とりあえず登録してから結構経つけど変なメールが届くようになったとかいうことはないです。

3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?