Command model is confusing

Dec 11, 2011 at 7:31 PM

This looks like a great library. I was going to try creating an SMTP server with it as you suggest on the front page.

However, it looks like everything is command-centric. How would you implement the DATA phase of an SMTP transaction? A DATA.cs class that extends StringCommandBase<T> is fine, but how would you obtain the arbitrary information that follows on single lines?

DATA

Email goes here

with arbitrary information

. (a dot ends the email)

 

Coordinator
Dec 12, 2011 at 12:14 AM

Yes, you can set next command reader to a self implemented one for the session to read data part of the email.

Feb 23, 2012 at 2:07 PM

Hi Guys, can you please post your SMTP server code? I need a similar functionality for my sever.