So you are one of those guy who want to setup a simple email send/receive capability to test various SharePoint notification mechanism for bunch of domain users.
The following were configured and tested in an environment of:
1. Windows Server 2012 R2 + Active Directory Installed + Required users added.
2. SharePoint 2013
3. Outlook 2013 client
1. First of all you need to configure SMTP service in your dev. box.
Note: Though you have an engine which can forward messages across, you still don’t have the POP3 service available within your box (the POP3 service no longer comes with windows server, which was available back in those days when Windows Server 2003 was there).
so how do you get that as most of your client would look for POP3 at a minimal. this is where the Visendo comes into play (btw, if you want to really configure a fully fledged server go ahead and try the exchange server, but for development purposes you really don’t want to spend time configuring exchange isn’t it?.
Test whether the SMTP service is ready before moving to next step – :
2. Install the Visendo following the steps marked in here (the version I used was V126.96.36.1997 Demo x64)
Refer to the manual I used here – https://www.dropbox.com/s/y54mkpojerlxfv6/VisendoSmtpExtender_manual_en.pdf?dl=0
The installation binary is here –
My setting for a test user email@example.com is as follows:
Any settings you play with either Visendo / SMTP service, you need to restart both services
To restart Visendo service (click the Settings top tree node in the UI):
To restart the SMTP service:
WIN + R > Services.msc > Look for “Simple Mail Transfer Protocol (SMTP) (right click and restart):
By now I am assuming that you have added necessary users to the Visendo to try the next step:
3. Configure outlook mail client to send/receive emails (since the idea is to test send/receive email for multiple users, I have set the configuration of outlook mail to prompt to choose the profile at start up):
How to make outlook prompt to choose profile:
Now to configure my test user firstname.lastname@example.org, follow the screenshots:
Tested sending and receiving emails from/to outlook client:
Finally Testing the whole with SharePoint:
$email = "email@example.com" $subject = "SharePoint routed email test" $body = "Email test body.. yey yey" $site = New-Object Microsoft.SharePoint.SPSite "http://pwcs.com.au" $web = $site.OpenWeb() [Microsoft.SharePoint.Utilities.SPUtility]::SendEmail($web,0,0,$email,$subject,$body) // A True or False will confirm the message has been sent or not
Throw it all to a console:
1. Worried since the email did not come to outlook , then started the usual check at the drop folder location:
– Found an unserved .eml reflecting the time that the email was sent. – wait.. just disappeared, hmm… just now the batch processing got invoked
2. now the email is received at the outlook end.
Some useful links I referred: