Pop3 to SMTP message custom forwarder in C#

Troy picture Troy · Mar 18, 2009 · Viewed 8.9k times · Source

I'd like to write a service that periodically checks a POP3 account for new messages and based on custom business logic forwards the messages to an appropriate "To", and possibly changes the "From" as well. I might need to keep some messages on the server until certain conditions are ready for them to be forwarded.

I found a sample using Chilkat .NET components that might work: http://www.example-code.com/csharp/pop3_forwarder.asp

My question is: Are there any other examples of this in the .NET space using any other components?

Thanks!

Answer

f3lix picture f3lix · Mar 18, 2009

The following SO questions/answers might help finding components for the POP3 part of your porject:

And you can use SmtpClient in System.Net.Mail for sending the mails: