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?
The best way I know to do this is using MailBee.NET objects which are not free, but you can download a trial: http://www.afterlogic.com/mailbee-net/email-components
Then what you are looking for is something like this:
Disclosure: I don’t work for AfterLogic, but some of their tools have been a big help with Elastic Email (http://elasticemail.com)