From 1626a1e15e5c61a292d6b9b76110168a62eb6f5a Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 18 Nov 2023 23:38:58 +0100 Subject: [PATCH] new email template that includes html, text and an attachment --- tools/testmail.txt | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/tools/testmail.txt b/tools/testmail.txt index 8fc3398..3889102 100644 --- a/tools/testmail.txt +++ b/tools/testmail.txt @@ -1,14 +1,38 @@ -HELO localhost -MAIL FROM: -RCPT TO: +EHLO example.com +MAIL FROM: +RCPT TO: DATA -Subject: Test Message +Subject: Your Subject +From: sender@example.com +To: recipient@example.com +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="boundary-string" -Hi there! This is supposed to be an email... +--boundary-string +Content-Type: multipart/alternative; boundary="alternative-boundary" -Have a good day! --- System +--alternative-boundary +Content-Type: text/plain +This is the plaintext part of the email. +--alternative-boundary +Content-Type: text/html + + + +

This is the HTML part of the email.

+ + + +--alternative-boundary-- + +--boundary-string +Content-Type: application/octet-stream +Content-Disposition: attachment; filename="example.txt" + +(Attach the contents of your file here) + +--boundary-string-- . QUIT