![]() *** MailCatcher runs as a daemon by default. Once you start MailCatcher, you should see the following: mailcatcher -ip 0.0.0.0 ![]() But if you wish to use a docker for installation or simply want to share your MailCatcher view with other machines, add “0.0.0.0” at the end. NOTE: Skipping the zeros is fine for most cases. Whichever approach you choose, MailCatcher should be installed once you complete all the steps.Īfter that, feel free to start it with: mailcatcher -ip 0.0.0.0 Then, specify the dependencies in a Gemfile: When you’re done, install MailCatcher with the following: gem install mailcatcherįirst, install Bundler: $ gem install bundler For each, solely the “Installing Ruby” part will be sufficient to set up the environment for installing MailCatcher. Many other versions of Ubuntu and Mac OS are also covered under the links above. Here’s how you can do this for the following OSs: MailCatcher runs on Ruby, so you’ll need to have a development environment set up. MailCatcher works with any framework that supports SMTP and localhost, so the list of available options is very long. You can look into its body, headers, attachments, and HTML code. If the latter is the case, you probably have some work to do here.Įach message that is received by MailCatcher can be opened and analyzed. Emails sent this way arrive at a local server only and can be viewed in a web interface. It works as a fake SMTP server to which you redirect your messages instead of sending them to a real SMTP server. MailCatcher is a free tool that can intercept emails sent from any web or mobile app. ![]() Even when you figure that out, how do you ensure the right emails are sent to the right recipients? How do you make them look beautiful on all screen sizes? How do you avoid random spam waves triggered accidentally when using production data in a pre-production environment? Some of these questions can be, to some extent, answered with a tool called MailCatcher. The framework you use might not necessarily be built with emails in mind (think, ReactJS, for example). Still dont know why a customer doesn't receive his emails, i'm assuming the issue is not on redmines side.Setting up email workflows for your app might be difficult. Sent email " create new redmine account for N***r" (131ms)īcc: to I'm sorry that i wasted your time, i for sure wasted a lot :/ Rendered mailer/issue_ within layouts/mailer (21.1ms) Rendered mailer/issue_ within layouts/mailer (21.2ms) I just should have comment the nil assertion. # Disable delivery errors if you bad email addresses should just be ignoredĬonfig.action_mailer.raise_delivery_errors = falseīut putting the :log there was wrong. the error occured because i did this in /config/environments/production.rb: # Outgoing emails configuration (see examples above)Īs already said, i was able to receive the test mail but it is possible that this error appears while sending the first mail and other people will not receive an email anymore. The actionmailer installed is: /vendor/bundle/gems/actionmailer-3.2.17 I tried to look into the actionmailer but my ruby knowledge isn't good enough to go further. (i marked internal informations with *** )įrom what i see the mail object looks good. #,, ,, >, >,, ,, ,, ,, ,, ,, ,, >Įmail delivery error: undefined method `error' for :log:Symbol Rendered mailer/issue_ within layouts/mailer (15.1ms) In order to get more detailed informations i printed out the mail object given to the method and got this in the log - while updating the issue the customer complained about not receiving an email: That is the super method of the mailer class (ActionMailer::deliver_mail) called at this line. NoMethodError (undefined method `error' for :log:Symbol):Īpp/models/mailer.rb:430:in `deliver_mail'Īpp/models/mailer.rb:86:in `block (2 levels) in deliver_issue_edit'Īpp/models/issue.rb:826:in `each_notification'Īpp/models/mailer.rb:85:in `block in deliver_issue_edit'Īpp/models/journal.rb:77:in `block in each_notification'Īpp/models/journal.rb:75:in `each_notification'Īpp/models/mailer.rb:84:in `deliver_issue_edit'Īpp/models/journal.rb:190:in `send_notification'Īpp/models/issue.rb:1511:in `create_journal'Īpp/models/issue.rb:165:in `create_or_update'Īpp/controllers/issues_controller.rb:470:in `block in save_issue_with_child_records'Īpp/controllers/issues_controller.rb:458:in `save_issue_with_child_records'Īpp/controllers/issues_controller.rb:184:in `update' Using debug log i could get the following informations: I encountered this bug while customers complained about not receiving emails. While sending a test mail the following error is displayed as a result in the settings Email notifications tab:Īn error occurred while sending mail (undefined method `error' for :log:Symbol)
0 Comments
Leave a Reply. |