Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send RegionalPartnerContact email from partner@ (and tests!) #25238

Merged
merged 3 commits into from
Oct 4, 2018

Conversation

islemaster
Copy link
Contributor

This week we made several changes to the Regional Partner Contact Form and associated emails. These changes included a bug that caused email sending to fail due to the from address not being on an allow list in our Poste module. We hotfixed here to send from teacher@code.org instead to get things working as quickly as possible.

Now, stakeholders have let us know they'd rather have this mail come from partner@code.org which is not currently on the allow list. I've added it to the allow list, and workout out how to add an assertion to our tests that actually runs the Poste logic with its additional checks, to verify that the mail is sendable.

Copy link
Contributor

@aoby aoby left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks Brad. This is great!

# includes some additional constraints, like a limited set of allowed senders.
#
# @param [Mail::Message] mail as returned by an ActionMailer::Base's mail() method
def assert_sendable(mail)
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

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

Successfully merging this pull request may close these issues.

None yet

2 participants