开发者

Windows Service to Check Email - IIS/C#

开发者 https://www.devze.com 2023-01-20 07:29 出处:网络
Update开发者_开发百科d: I need to figure out the best method for setting up an email account and automatically reading and processing emails.

Update开发者_开发百科d:

I need to figure out the best method for setting up an email account and automatically reading and processing emails.

After some thought I want to check a POP account (Gmail) from my service. Are there any libraries/built in stuff I can use to do this?

Free > Not Free.


Strictly speaking, you don't need IIS in the mix. You only need IIS (or your own POP/SMTP server) if you actually need management of the mail account you want to interact with at the server level.

You could certainly just write a windows service that uses SmtpClient (built into .NET) to send out emails to your external SMTP server:

http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx

And to check emails, you could use a POP client. I've used aspnetpop3 and it's ok, but you can certainly find some other (free) resources for checking POP mailboxes:

http://www.advancedintellect.com/product.aspx?pop3

0

精彩评论

暂无评论...
验证码 换一张
取 消