As mentioned in the previous post, the Cjwdev.Mail.SmtpSender class is now ready for public testing. See below for download link and instructions. If you dont know what this SmtpSender class is, you can read all about it here: SmtpSender Class Description
You can download the alpha (pre BETA) release here: http://www.cjwdev.co.uk/DeveloperComponents/Cjwdev-Mail/CjwdevMail-0-0-1-0.zip
This ZIP file contains 2 DLLs, MxResolver.dll and SmtpSrv.dll – to use the SmtpSender class you just need to add a reference to the SmtpSrv.dll file. Ensure that the MxResolver.dll file is in the same directory that you are using SmtpSrv.dll from though, as this DLL uses methods and classes from the MxResolver library that I have also written (I may combine both into a single DLL for the next release). Also, if you want to see the descriptions for methods and properties etc in Intellisense when working with my classes, make sure you have the two XML files (that are included in the download) in the same directory as well.
Once you have added the reference, you can access the SmtpSender class via the Cjwdev.Mail namespace. For example:
Before using the class, please see this post for a couple of quick examples of how to use it to send an email and check the status of the sent email: SmtpSender Examples and this post for an important notice regarding sending to hotmail/gmail/yahoo addresses: Problems sending to public email services
I would also recommend that you always set the LocalIdentifier property of the SmtpSender class before attempting to use it to send an email, as some email servers require this ID before they will let you submit email to them. In future releases I will probably make it so that if you dont set this explicitly then it just gets set to the computer name that the code is running on.
So basically I’m just hoping some of you reading this would be willing to download the class and give it a go – try using it to send emails to as many different domains as you can (where you can confirm that the recipient received the email) and let me know which ones worked, which ones didnt, what errors you got etc. I would love to hear feedback from anyone that uses this, but please dont forget that this is an Alpha release and as such there are bound to be a few bugs/problems – please inform me of any you find by either posting a comment here or emailing me at cwright [at] cjwdev [dot] co [dot] uk