-
Notifications
You must be signed in to change notification settings - Fork 780
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
Expose Client and MailService classes #650
Conversation
@thinkingserious I've updated the license year as well to fix the failing build. Maybe put that check in first, so that the Travis build fails faster without having to run the rest of the tests first before it finds out something trivial like that fails? I've also tried to fix the issue with the |
Hi @adamreisnz, LGTM With regards to the tests, I agree. For the remaining failing test, I believe this should fix it. |
Hello @adamreisnz, |
Is this documented anywhere other than here? We had to dig for this one as we wanted different emails to go out from different subusers on our account (transactional vs marketing etc). This merged PR def does the job, it's just not documented anywhere from what I could find (and I always worry that non-documented items are the first to get changed without notice). |
Ah yea - It seems it's in the client README file, but not in the Mail README, but used to also be in the Mail USECASES file, but that since has been edited to link here and no longer has that info. |
Thanks for the heads up @J-Gonzalez, I've filed an issue for a fix. Thanks for helping out @adamreisnz! |
Fixes #649
Checklist
I have added tests that prove my fix is effective or that my feature worksShort description of what this PR does:
This PR exposes the
Client
andMailService
classes via their default module exports allowing end users to manually instantiate client or mailer instances, so that multiple API keys or different settings can be used without affecting the global singleton client and mailer instances.Example usage
Mailer:
Client:
Notes
cc @thinkingserious @tflanagan