Method
#sendEmail
({ to, subject, react }: { to: string; subject: string; react: ReactElement })
Source from the content-addressed store, hash-verified
| 118 | } |
| 119 | |
| 120 | async #sendEmail({ to, subject, react }: { to: string; subject: string; react: ReactElement }) { |
| 121 | if (this.#client) { |
| 122 | await this.#client.emails.send({ |
| 123 | from: this.#from, |
| 124 | to, |
| 125 | reply_to: this.#replyTo, |
| 126 | subject, |
| 127 | react, |
| 128 | }); |
| 129 | |
| 130 | return; |
| 131 | } |
| 132 | |
| 133 | console.log(` |
| 134 | ##### sendEmail to ${to}, subject: ${subject} |
| 135 | |
| 136 | ${render(react, { |
| 137 | plainText: true, |
| 138 | })} |
| 139 | `); |
| 140 | } |
| 141 | } |
Tested by
no test coverage detected