Effectively I'm trying to send some template emails so that I can test a few components that handle reading from mailboxes.
I could just load up outlook and send a couple of emails but I'm looking to find a solution that can read thousands of emails at a time so I need to bulk send these templates t test the reading code.
When I say bulk send ... I have about 10 to 15 templates (varies) and I want to send about 1,000 copies of each to the given mailbox.
Now here's th sticking point ...
I could just fire up an instance of the SMTP client and declare a new MailMessage
object then send that using the SMTP client ... the problem is that my email templates contain custom header info so its not just a matter of msg.Body = someText
and then setting the To and From and Subject fields.
I don't want to spend time manually parsing these emails because the headers are quite lengthy and contain a lot of custom values that I'll be working on later.
So if I have a txt
or eml
file how do I send that raw text to my mailbox so I can perform my afformentioned testing?