-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
[8.0][ADD] Sendgrid modules for transactional e-mails #102
Conversation
I cannot find where I should add the |
in https://github.com/OCA/social/blob/10.0/.travis.yml#L29, just add another line there. |
I won't have time to write tests now. There are no demo API keys. Do you think I could create a free account and use it for that ? But this may expose it for people to use it for sending e-mails. How then could I set the api key in the configuration of odoo (if possible encrypted). Otherwise I don't see how we can test the code if we cannot make any real call of the sendgrid api (a lot of methods use it). I'm not familiar with mock. |
no tests = no merge |
Thanks for the tips, I'll have a look at it when I have time ! I'll be back with the pull request when I can manage to implement the tests. In the meantime if someone is interested in those modules and would like to help with the tests, please contact me. |
I reopened your PR and set it to work in progress. This way it's still visible, but nobody is going to bug you about this until you request to remove the wip label |
You can mock your tests the same we make for mail_tracking_mailgun module. You can also use that "framework" to build on top of it your module instead of repeating everything. |
Ok I will have a look at this. |
f1b19d3
to
71ab490
Compare
@rafaelbn, my comment is that they should use mail_tracking framework and with this, they only need mail_tracking_sendgrid. Mass mailing part is automatically done. |
Like I said, I won't have time now to do all those requests. I'm not sure if mass_mailing can be removed. When I wrote the module the mass tracking was poorly done and didn't work with sendgrid. I guess it changed in between but this will take time to adapt. If someone is interested, I'd be happy to have some help (PR are welcome). |
mass_mailing_tracking provides the needed framework also for having full capacities on mass mailing without the need of making anything more specific for Sendgrid. That's why I say it's worth to take a look, @ecino, you will have to make little effort to adapt it to this system as you know already Sendgrid, but obviously it's your choice. As is, the module can't enter OCA right now. |
c8a2c1e
to
6a77fc3
Compare
New PR for version 9.0 |
Two modules for connecting e-mails and mass_mailing with Sendgrid
This enables the use of Sendgrid transactional e-mails with templates and Sendgrid Event Notifications hook for tracking all e-mails sent.
Note: we don't have any tests because it requires an API Key (cannot be used without).