I’m trying to use Action Mailer in Rails to send email to users.
def create
...
if @post.save
UserMailer.archive_confirmation(@site).deliver
end
end
But when I try it, I don’t get any email, and I have no idea how to debug (since the create method runs successfully, and everything else goes as expected, there’s no error message) Where could ActionMailer go wrong?
Check your RAILS log,
APP_ROOT/log/development.logorAPP_ROOT/log/production.log.