-
Notifications
You must be signed in to change notification settings - Fork 30
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
Mandrill Cc/Bcc handling #31
Conversation
As @stof worked on the Identity stuff, I think he could get his mind on this. I would also add that this is an urgent work, so I will be reactive on this. Thanks for your time and patience. |
I don't see the reason to modify the Identity (thus, adding a method in IdentityInterface is a bC break). The Mandrill adapter could simply loop over Thus, your logic is broken: if I set an Identity object in |
and MandrillTest.php is testing the formatting of messages. This is the place where you should add a test using Cc and Bcc |
@stof At the moment, I don't have time to do a big work on this... this was a 20minutes work. Could you suggest your way to proceed? I would gladly come with a new version if I could have hints on this. Thanks. |
@Ninir the way to send the type as and for the implementation, just keep the existing loop processing |
@stof Added some tests to handle cases. Understood what you meant, and it's even lighter compared to what was done previously. Thanks for this. |
@@ -5,7 +5,7 @@ | |||
use Stampie\Adapter\AdapterInterface; | |||
|
|||
/** | |||
* Takes a MailerInterface and sends to to Postmark throgh Buzz | |||
* Takes a MailerInterface and sends to Postmark through Buzz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Postmark
and Buzz
should not be mentionned here actually:
- we have more HTTP adapters than Buzz (currently Guzzle3)
- we have more implementations of this interface than just Postmark
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the message to be more generic.
👍 |
Thanks both :) |
@henrikbjorn it would be great to do a 0.8.0 release with this |
This is now done https://github.com/henrikbjorn/Stampie/releases/tag/0.8.0 :) |
A big thank @henrikbjorn @stof :) |
Hi,
This adds the implementation of Cc/Bcc for Mandrill. There were 2 ways to do it, as exposed on the Mandrill API doc:
bcc_address
optionI found the first one more maintainable. Not sure how to handle tests in a proper way.