Try to automate a process here - we have a system that generated batch SMTP files dumps them to a folder - a 3rd party .net component reads the file and then sends it along to our SMTP server. Problem is this component create and destroys a new smtp connection with every email. So painfully slow - I checked with the vendor and no plans to do it any other way ..ever.. So wanted to spin up my own simple service - the feeding application creates batch smtp files.. I try to load this via MimeKit and get an parsing error - which i get not really a normal MIME a client would use.. is there any option to get MimeKit or even MailKit to load and relay this mail?
Simplified format of the file.. all the data is muged up for clarity - I guess I could strip out the smtp command and set them in the code and just stream in the actual MIM portion - but seems there should be a simpler way
PORT 25
HELO mydomain.com
MAIL FROM: <asdlfjasdfasdfadsf@mydomain.com>
RCPT TO: <foobar@blah.com>
DATA
From: <foobar@foo.com>
To: foovar@blah.com
Subject: Test
Date: Wed, 04 Nov 2020 11:31:52 -0600
Message-ID: <2asdfadfadaf9-0@v116.mydomain.com>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="--=036c8f0f_0fd5_48a2_85b7_b5310c3b811b"
----=036c8f0f_0fd5_48a2_85b7_b5310c3b811b
Content-Type: multipart/alternative;
boundary="--=6b227ff4_d132_4000_9af6_f92a291f8101"
----=6b227ff4_d132_4000_9af6_f92a291f8101
Content-Type: text/plain;charset="UTF-8"
Content-Transfer-Encoding: Quoted-Printable
some content here
----=6b227ff4_d132_4000_9af6_f92a291f8101
Content-Type: text/html;charset="UTF-8"
Content-Transfer-Encoding: Quoted-Printable
html content here
----=6b227ff4_d132_4000_9af6_f92a291f8101--
----=036c8f0f_0fd5_48a2_85b7_b5310c3b811b--
.
QUIT