|
10 | 10 | 3. Send bulk templated emails with attachments to multiple recipients. |
11 | 11 |
|
12 | 12 | The new attachment support eliminates the need for developers to construct |
13 | | - raw MIME messages — SES handles the MIME assembly automatically. |
| 13 | + raw MIME messages. SES handles the MIME assembly automatically. |
14 | 14 | """ |
15 | 15 |
|
16 | 16 | import json |
@@ -190,7 +190,7 @@ def _step1_send_email_with_attachment(self) -> None: |
190 | 190 | message_id = self.sesv2_wrapper.send_email( |
191 | 191 | from_address=self.sender_email, |
192 | 192 | to_addresses=self.recipient_emails, |
193 | | - subject="SESv2 Attachment Demo — Simple Email with Attachment", |
| 193 | + subject="SESv2 Attachment Demo - Simple Email with Attachment", |
194 | 194 | html_body=( |
195 | 195 | "<h1>Attachment Demo</h1>" |
196 | 196 | "<p>Please see the attached <b>report document</b>.</p>" |
@@ -247,16 +247,16 @@ def _step2_send_email_with_inline_image(self) -> None: |
247 | 247 | message_id = self.sesv2_wrapper.send_email( |
248 | 248 | from_address=self.sender_email, |
249 | 249 | to_addresses=self.recipient_emails, |
250 | | - subject="SESv2 Attachment Demo — Inline Image", |
| 250 | + subject="SESv2 Attachment Demo - Inline Image", |
251 | 251 | html_body=html_body, |
252 | 252 | text_body=( |
253 | | - "Inline Image Demo — Please view this email in an " |
| 253 | + "Inline Image Demo - Please view this email in an " |
254 | 254 | "HTML-capable client to see the embedded image." |
255 | 255 | ), |
256 | 256 | attachments=[attachment], |
257 | 257 | ) |
258 | 258 |
|
259 | | - print(f" Email sent! MessageId: {message_id}") |
| 259 | + print(f" Email sent. MessageId: {message_id}") |
260 | 260 | print( |
261 | 261 | " The ContentId 'logo123' is referenced in the HTML body via\n" |
262 | 262 | " 'cid:logo123', which lets the image render inline.\n" |
|
0 commit comments