I’m not even sure how to word the question correctly.
I have a web app, built in C#, ASP.NET MVC 3 (Razor), and would like to allow members to send an email from their mobile device, to one of my app’s e-mail addresses. Then my app posts the contents of the e-mail to the site.
I’d like the email address to be their username + domain.com.
Can this be done strictly from code within my web app, hosted on DiscountASP shared hosting?
There are a couple of options for receiving email and a lot of it depends on what your host supports and how many emails you need to receive. I wrote a blog post describing the options for Rails apps. The options are pretty much identical for C# apps although if you’re using windows you might have to substitute what you actually run in the command line.
The main options include polling an existing email server using POP/IMAP, making your email server execute a script when it receives a message or using a third party like CloudMailin to make and HTTP Post to your app with the message content.