I have a pretty simple Rails application and I want to send an email when creating a work request. I am new to Rails, so I found some details on how to do this on the Internet. Configure Mailer, configure it, etc. Customize my templates. Good.
In my work_requests_controller.rb I have:
def create @work_request = WorkRequest.new(params[:work_request]) respond_to do |format| if @work_request.save
To know that mail works, because if I go to the Rails console, create a WorkRequest object and use the same line (PersonMailer.work ...), it sends the mail just fine. But when I create a request for work in my application, no mail is received, an error is not displayed in the browser or in the logs /development.log.
At the server output, I see that the HTML version has been rendered, and I see the information about the email, and it all looks both heavy and dory. Since I have no errors, I do not understand how to do this.
source share