This diff adds a Postmark client and two functions: One to compose an e-mail object and another to send all the emails in batch
Depends on D8986
Paths
| Differential D8987 Authored by bartek on Aug 28 2023, 11:05 PM.
Details Summary This diff adds a Postmark client and two functions: One to compose an e-mail object and another to send all the emails in batch Depends on D8986 Test Plan Test plan in child diff D898 where these functions are called
Diff Detail
Event Timelinebartek held this revision as a draft. Herald added a reviewer: • jon. · View Herald TranscriptAug 28 2023, 11:05 PM2023-08-28 23:05:28 (UTC-7) Harbormaster completed remote builds in B22188: Diff 30464.Aug 28 2023, 11:22 PM2023-08-28 23:22:32 (UTC-7) bartek edited the summary of this revision. (Show Details)Aug 29 2023, 12:01 AM2023-08-29 00:01:18 (UTC-7) This revision is now accepted and ready to land.Aug 29 2023, 9:49 AM2023-08-29 09:49:36 (UTC-7) This revision now requires review to proceed.Aug 30 2023, 1:54 AM2023-08-30 01:54:14 (UTC-7) Comment Actions The license is ok, but the library doesn't have too many downloads and the repo has only 6 stars. It also isn't mentioned by Postmark as official https://postmarkapp.com/developer/integration/official-libraries or community https://postmarkapp.com/developer/integration/community-libraries library. Are there any alternatives? Have we considered sending HTTP requests directly? This revision now requires changes to proceed.Aug 30 2023, 2:37 AM2023-08-30 02:37:08 (UTC-7) Comment Actions
There's no official Rust library for Postmark. The service itself offers a REST API over which this library is a thin wrapper. We found it during 1:1 with @ashoat, I quickly looked at its source code and it looks alright. If you feel strongly, I can implement the API calls directly as a follow-up task, but this will introduce more maintenance overhead. Comment Actions
Ok, that makes sense - I guess we can keep this library. This revision is now accepted and ready to land.Aug 30 2023, 4:20 AM2023-08-30 04:20:50 (UTC-7) Closed by commit rCOMMa6aa509088ec: [reports-service] Add functions to send e-mails (authored by bartek). · Explain WhySep 3 2023, 11:41 PM2023-09-03 23:41:42 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 30726 services/reports/Cargo.lock
services/reports/Cargo.toml
services/reports/src/email/config.rs
services/reports/src/email/mod.rs
|