April 2020
Intermediate to advanced
292 pages
6h 50m
English
The email Component will be the only part of the system that knows how to send emails, and sending emails is all it will know about. Sending email is a delightfully straightforward process that culminates in one of two possible events—Sent when it worked, and Failed when it didn’t. We’ll record having sent an email with the following:
| | { |
| | "id": "c5f672bd-cf5f-4e6b-91ad-60a17cd6bbab", |
| | "type": "Sent", |
| | "data": { |
| | "emailId": "e0c6e804-ae9e-4c9c-bd55-b0c049a03993", |
| | "to": "lucky-recipient@example.com", |
| | "subject": "Rare investment opportunity", |
| | "text": "12 million US pounds stirling", |
| | "html": "<blink>12 million US pounds stirling</blink>" |
| | } |
| | } |
to, from, and subject ...
Read now
Unlock full access