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
Archives For Cjwdev.Mail
The ALPHA release (pre-BETA) of the Cjwdev.Mail class SmtpSender is now ready for public testing and will be available for download within the next couple of days. This is still early days and the code is certainly not ready to be used in any real applications, I am just releasing it in this early form to get feedback and to see if other people can find bugs in it that I have not yet found or anticipated (there will undoubtedly be a fair few of these!). An example of how to use the SmtpSender class can be found below.
My SmtpSender class has now sent its first successful email 🙂 This uses the DNS MX Lookup I have talked about in previous posts to locate the mail server for the domain you are sending an email to, and then transfers the email to the mail server via SMTP. However, there is a problem with sending to public email services such as hotmail and yahoo… Read on to find out more.
Just a quick update to let anyone that has been following this know that I have not forgotten about this project. I have been working on it again today and have made some good progress – my code can now correctly parse the response sent from a DNS server for an MX lookup. So now I just need to do some more testing (and tidy up some of the code) and then I can move on to the task of actually transmitting an email from my application to another SMTP server.
Its been a bit hectic for the last couple of weeks (bought a new car amongst other things!) so I have not had chance to do any more work on my SMTP server classes. I will hopefully be continuing work on this next week and will post an update here when I get further with it.
So I’ve explained what you can do with my SmtpSender and SmtpReceiver class in the last few posts, now its time to fill you in on where exactly this project is at.
The previous post talked about how the SmtpSender class will work and showed an example of how you would use this from your code. This post is going to describe the design of the SmtpReceiver class and show you how you can use this in your own code.
As mentioned in the previous post, I have begun writing my own .NET SMTP server class that I will be making available for free (in the form of a .NET DLL) on my website once complete. So lets take a look at exactly what this class is for and how it will work:
My SMTP class library can essentially turn your application into an SMTP server. It will provide the ability to send emails (without the need for an existing SMTP server) and will allow your application to handle incoming SMTP requests from other servers and clients.