Skip to content

Implement postmark#28

Open
Azfletch wants to merge 15 commits into
developfrom
feature/implement_postmark
Open

Implement postmark#28
Azfletch wants to merge 15 commits into
developfrom
feature/implement_postmark

Conversation

@Azfletch

@Azfletch Azfletch commented Nov 23, 2018

Copy link
Copy Markdown
Owner

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
Comment thread .env Outdated
Comment thread Gemfile Outdated
Comment thread app/mailers/notification_mailer.rb Outdated
Comment thread app/mailers/notification_mailer.rb Outdated
Comment thread config/application.rb
Comment thread spec/mailers/notification_mailer_spec.rb
mail(
to: notification.email,
subject: "Arrons blog has been updated!",
from: "arron.fletcher@shiftcommerce.com",

Copy link
Copy Markdown

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

Comment thread config/application.rb
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")

Copy link
Copy Markdown

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