Private messaging in a asp.net mvc app with email reply -


we implementing private messaging in our asp.net mvc app , have come conclusion make work github does... meaning user receive message both through our site , email inbox(this easy achieve mvcmailer nuget).. option have user reply email (through email client) , have email sent our app (if have used guthubs private messaging should know mean)..... common approach implementing feature?

see comment regarding how read emails mailbox.

i use message bus not limited internal , email notifications, example may wish add sms notifications in future.

you may want check out masstransit or nservicebus although may easier create own.

public class message {     public string title {get;set;}     public string body {get;set;} }  public interface imessagebus {     void send(message message); }  public interface imessagehandler {     void handle(message message); }  public class internalmessagehander : imessagehandler {     public void handle(message message) {         // send internal message     } }  public class emailmessagehandler : imessagehandler {     public void handle(message message) {         // send email     } } 

your imessagebus implementation need locate handlers (i use ioc container this).

if need process large volumes of messages recommend handing these off queue , processing these asynchronously (both masstransit , nservicebus support message queues use simple database table).

as far reading emails, have background task connects mailbox, downloads emails, parses them , updates content.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -