简体   繁体   中英

how to create a SMTP server

I have an application that run on server, I want that my application could received mail in order to start some function. I would like to know what should I need to do in order to have this capability? Do I need to build SMTP server? if so, how should I do it?

You can use IIS6 to receive email and drop it into a specified folder. Your app can then pick up those emails and do whatever it needs to with them.

以前,我已经使用Chilkat POP3组件以编程方式监视POP3帐户中的传入邮件取得了一些成功。

Active the SMTP service in IIS. It drops emails in the C:\\inetpub\\smtproot\\drop folder IIRC.

Then you just need a Mime parser to read the EML files. I used the one in Lumisoft when I did the same thing.

You could use any Mailserver to receive the mail and have your application check the poxtbox every 1 minute to receive the mails. When any mail arrived (or special subject as you need), you could execute your code.

For IMAP you could look at this Library

You can try: http://www.lumisoft.ee/lsWWW/download/downloads/ . There is SMTP server component what you can use to recieve emails. Or alternatively there is SMTP server written in C#, you can write message filter for server. In filter you can access incoming message and do what ever you want with it. --- Yes also as others suggested will work ok too, you just run simple mail server and get emails by pop3 or imap. Pop3 and Imap components and example applications also included in same link.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM