Development and production configurations for mailers
For deliverability reasons, I installed SPF records and other types of
authentication to make sure production emails aren't flagged as spam. The
side-effect is that when I run tests from my localhost they don't work. Is
there a "Rails Way" to have development vs. production credentials for a
mailer? It seems like I could build my own logic based on the Rails.env
variable, but I don't want to reinvent the wheel if there is already
support for this.
No comments:
Post a Comment