Are your logs printing the complete email when you are sending using Action Mailer in ROR?
By default your Action Mailer will print the log when an email is being sent. So to Avoid this add the following line in envionment.rb where you initialize.
ActionMailer::Base.logger = nil
This should look like below.
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"
ActionMailer::Base.logger = nil #this will prevent you by printing in the log.
So this will prevent by printing in all the logs.
No comments:
Post a Comment