SPMail
This is a simple console app that will pull mail from a POP3 server and save it to a local directory. Use this, in conjunction with SharePoint's drop folder to feed WSS's incoming mail from a POP3 account.
Get it: Cannot resolve release macro, invalid id.

Readme:
  1. Create a folder where you want your email to get processed, such as C:\SPMail
  2. In Central Admin; operations>incoming email settings, set your implementation to retrieve mail from a drop folder and enter the folder path you used in step 1.
mailsettings.jpg
  1. Put the spmail utility on your machine and set up its configuration file. Any POP3 enabled email server will work, but this example uses branded Gmail (part of Google apps)
<configuration>
<appSettings>
<!-- Pop Client Settings-->
<add key="popHost" value="pop.gmail.com"/>
<add key="popPort" value="995"/>
<add key="useSSL" value="true"/>
<add key="popUser" value="youraccount@yourdomain.com"/>
<add key="popPassword" value="password"/>
<add key="traceToConsole" value="true"/>
<add key="deleteAfterRetrieve" value="true"/>

<!-- Drop Box Settings-->
<add key="dropFolderPath" value="c:\spIncomingMail"/>
</appSettings>
</configuration>


  1. Set up a timer job to run spmail.exe on a regular basis, like every 5 minutes.

NOTE: You’ll need to get your mail into your pop account. You can do that with groups, aliases, or a catch all account.
NOTE 2: SharePoint ignores everything after the @ when processing incoming mail, so you may be able to use that to your advantage if you’re in a hosted environment. i.e. I can forward listname@mydomain.com to listname@hosteddomain.com and everything should work fine.

About the external reference

The Net.dll comes from an open source project on www.codeproject.com called NetPopMimeClient.
Get it and learn more about it here:
http://www.codeproject.com/KB/IP/NetPopMimeClient.aspx

Update
  • 10/31/2008: I put copied the code from the pop3 client http://www.codeproject.com/KB/IP/NetPopMimeClient.aspx into this solution. I'd rather have kept it as an external reference, but it seems to be throwing some errors for other users and they are having trouble debugging with it as a seperate project.
  • 11/3/2008: I added two more keys to the app.config. traceToConsole allows you to turn off the information being written to the console windows. deleteAfterRetrieve allows you to mark an email for deletetion from the POP3 server.

More Information
You may find more information available on:
My business site - http://www.MyLocalBroadband.com
My blog - http://www.Intranoggin.com

Home

Last edited Nov 3, 2008 at 5:03 PM by RyanLMiller, version 8

Comments

RyanLMiller Oct 29, 2008 at 1:28 AM 
Thanks to Joel Hoornbeek for reporting a bug in the 0.5 version that is fixed in the 1.0 version.