1curl \ 2 --url 'smtp://sandbox-smtp.mailcatch.app:2525' \ 3 --user '<username>:<password>' \ 4 --mail-from from@example.com \ 5 --mail-rcpt to@example.com \ 6 --upload-file - <<EOF 7From: Magic Elves <from@example.com> 8To: Mailcatch Inbox <to@example.com> 9Subject: Hello, I'm a subject. 10Content-Type: multipart/alternative; boundary="boundary-string" 11 12--boundary-string 13Content-Type: text/plain; charset="utf-8" 14Content-Transfer-Encoding: quoted-printable 15Content-Disposition: inline 16 17Hello, I'm a message. 18 19--boundary-string 20Content-Type: text/html; charset="utf-8" 21Content-Transfer-Encoding: quoted-printable 22Content-Disposition: inline 23 24Hello, I'm a message. 25 26--boundary-string-- 27EOF