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

fix options forwarding from APIMailer to Mailjet::Send #109

Merged
merged 4 commits into from
Jul 3, 2017
Merged

Conversation

Lorel
Copy link
Contributor

@Lorel Lorel commented Jun 30, 2017

This line broke options forwarding from Mailjet::Send#create to Mailjet::Send#connection because Mailjet::Send#change_resource_path does not forward them

In the meantime, light refacto of Mailjet::APIMailer#initialize and Mailjet::APIMailer#deliver!

Tested against Rails app with API v3.0 and v3.1: mails are sent with correct credentials and fail when invalid ones are provided (i.e. if you pass your credentials in the conventional way of using Mail: mail(to: to_address, from: from_address, subject: subject, delivery_method_options: { api_key: 'your-api-key', secret_key: 'your-secret-key' }))

@Lorel Lorel requested a review from arnaudbreton June 30, 2017 23:00
@arnaudbreton arnaudbreton merged commit 9d9f59c into master Jul 3, 2017
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.

2 participants