Sending mail with Rails 3 in development environment

前端 未结 8 1289
执念已碎
执念已碎 2020-12-04 06:29

I\'m sure this has been asked a million times before but I can\'t find anything that works for me so I\'m asking again!

I just need a way of sending emails using Act

8条回答
  •  醉酒成梦
    2020-12-04 07:12

    My two pennies worth:

    I had those exact same symptoms with Rails 5.1: Nothing happened, the settings in my development.rb file were utterly ignored...

    Then I remembered to restart the machine! (which solved magically the issue)

    This had been pointed out by a couple of previous comments.

    The issue is tricky however because you do not expect this behavior. In my view, the default comments in development.rb are, in this respect, misleading:

    # In the development environment your application's code is reloaded on
    # every request. This slows down response time but is perfect for development
    # since *you don't have to restart the web server when you make code changes*.
    

提交回复
热议问题