Skip to content

Conversation

Azfletch
Copy link
Owner

@Azfletch Azfletch commented Nov 23, 2018

The scope of this PR is to:

  • Implement Postmark for delivering SMTP emails and use environment variables for sensitive credentials.

  • Add Tests

Related Issue: #15

@Azfletch Azfletch self-assigned this Nov 23, 2018
@Azfletch Azfletch added the enhancement New feature or request label Nov 23, 2018
mail(
to: notification.email,
subject: "Arrons blog has been updated!",
from: "arron.fletcher@shiftcommerce.com",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change this to a personal email address

config.action_mailer.default_url_options = { host: "localhost:4000" }
config.action_mailer.asset_host = "http://localhost:4000"
config.action_mailer.default_url_options = { host: ENV.fetch("MAILER_HOST") }
config.action_mailer.asset_host = ENV.fetch("MAILER_HOST")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove all this stuff from application.rb as you are defining them in development.rb and production.rb already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants