0
0

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 3 years have passed since last update.

パスワードリセットメールを送信できる時とできない時がある

Posted at

#ActionMailerでたまにメールを送信できない時(sorcery使用時)

ActionMailerにはメールの送信間隔が設定されており、連続でメールを送信してもメールが送信できないことがある。

###解決策

config/initializers/sorcery.rb
# user.reset_password_time_between_emails =

コメントアウトになっている部分があるので、ここを

config/initializers/sorcery.rb
user.reset_password_time_between_emails = 1

メールの送信間隔を直接指定する形で設定してやれば連続でメールを送れるようになる

以下参考記事
https://rochefort.hatenablog.com/entry/2016/04/03/011717

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?