Reciving Mail
-
Hi Huys I am working on a web application in which i create a mailing system, which is internal mailing system for that application. now I want, If any user sending mail from out side mailserver like gmail or yahoo which should be received in my Application Inbox Is it possible if yes then how, Please help me Thanks in Advance
-
Hi Huys I am working on a web application in which i create a mailing system, which is internal mailing system for that application. now I want, If any user sending mail from out side mailserver like gmail or yahoo which should be received in my Application Inbox Is it possible if yes then how, Please help me Thanks in Advance
Receiving mail is a whole different beast than sending mail. If you're in a corporate environment, you should ask the mail administrator which are the recommended ways of doing this. Otherwise, the following article[^] implements a simple pop3 server with eventing. You could do something similar. The point is that internet mail is distributed through smtp servers. In order to receive mail from the internet, you need a public domain name, MX records in you domain DNS, and a fixed IP address. If you can't do that, you'll have to register a mail address with a free mail provider (or with your ISP). You can then access that mail through the POP3 protocol(all providers), the IMAP protocol (some providers), or something else (for example MAPI) Your best bet is pop3, after you've registered a mail address. I've found a pop3 class library at Codeplex[^], you may wanto check it out