How would you implement database updates via email?

前端 未结 6 521
萌比男神i
萌比男神i 2021-02-04 22:11

I\'m building a public website which has its own domain name with pop/smtp mail services. I\'m considering giving users the option to update their data via email - something sim

6条回答
  •  一生所求
    2021-02-04 22:34

    For starters you need to have hosting that allows you to create a catch-all mailbox.

    Secondly you need a good POP3 or IMAP library, which is not included AFAIK in the .NET stack.

    Then you would write a Command Line application or a Service that regularly checks the mailbox, pulls messages, inserts content in db based on the "To" address (which is unique for each user), and then deletes the email from the mailbox.

    It's feasible and sounds like fun. Just make sure you have all you need before you start!

提交回复
热议问题