Thanks Luke! I looking to see about integrating NMail into one on my projects as the SMTP Server. I downloaded the source last night to look at. I was going to start creating a unit test to send email and then read a email send back to the system.
I am assuming I must first create a user and a store in order to start using the system.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The NMail configuration class acts as a sort of quick and dirty inversion of control container. For it to setup the local store correctly you need a line in the config file that looks like this:
Is API documentation available for NMail. I am looking to use NMail in a project I am working on.
Hi,
There isn't really any documentation available; but I'm happy to answer any questions that you have.
--Luke
Hi,
Thanks Luke! I looking to see about integrating NMail into one on my projects as the SMTP Server. I downloaded the source last night to look at. I was going to start creating a unit test to send email and then read a email send back to the system.
I am assuming I must first create a user and a store in order to start using the system.
I almost forgot there is a developer's guide in the doc directory. It gives an overview of the system in case you haven't already seen it.
That's correct, you need a store and a user to be able to accept an email from another mail server.
I have looked at the developers guide.
I created a unit test in my project to create a new user and local store and I have referenced all the Dll from the NMail solution.
Added the following code to open the config file
System.Configuration.Configuration config = NMail.Configuration.NMailConfigFile.OpenConfig(@"C:\Program Files\NMail\NMail Server 1.1\NMail.config");
ILocalStoreData localStoreData = NMail.Configuration.NMailConfiguration.Current.LocalStoreData;
but the llocalStoreData is returning null. I am sure I am just missing something here.
Thanks for any help!
Hi,
The NMail configuration class acts as a sort of quick and dirty inversion of control container. For it to setup the local store correctly you need a line in the config file that looks like this:
<NMail>
<NamedServices>
<NamedService Name="LocalStore" Type="NMail.LocalStore.LocalStore, NMail.LocalStore" />
<NamedService Name="LocalStoreData" Type="NMail.LocalStoreData.NHibernate.NHibernateLocalStoreData, NMail.LocalStoreData.NHibernate" />
...
Which tells the configuration class which implementation to instantiate for the local store.