SharePoint Developer box configured with email send/receive capability using SMTP Service + Visendo SmtpExtender


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

Steps:

1. First of all you need to configure SMTP service in your dev. box.

https://technet.microsoft.com/en-us/library/cc263462%28v=office.15%29.aspx

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 V1.1.2.637 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 –

https://www.dropbox.com/s/wbrs0wu804xadql/VisendoSMTPExtender_Plus_x64.msi?dl=0

 

My setting for a test user tariqa@readylab.net is as follows:

image

image

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):

image

To restart the SMTP service:

WIN + R > Services.msc  > Look for “Simple Mail Transfer Protocol (SMTP) (right click and restart):

image

 

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:

image

image

 

Now to configure my test user tariqa@readylab.net, follow the screenshots:

image

image

image

 

image

 

image

 

Tested sending and receiving emails from/to outlook client:

image

 

Finally Testing the whole with SharePoint:

$email = "tariqa@readylab.net" $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:

image

 

Observation/outcome:

1. Worried since the email did not come to outlook Sad smile, 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.

image

 

Happy configuring….

Some useful links I referred:

http://weblogs.asp.net/hpreishuber/free-pop3-for-windows-2012-server

http://www.visendo.com/download/visendosmtpextender/docs/VisendoSmtpExtender_manual_en.pdf

http://blogs.perficient.com/microsoft/2010/11/email-configuration-within-a-sharepoint-2010-development-environment/

http://www.falconitservices.com/support/KB/Lists/Posts/Post.aspx?ID=105

https://technet.microsoft.com/en-us/library/cc732046%28v=ws.10%29.aspx

http://blogs.msdn.com/b/pareshg/archive/2010/04/23/how-to-configure-incoming-and-outgoing-emails-in-sharepoint-server-2010.aspx

http://webvaultwiki.com.au/(S(02oa34jugewqyznj3f0qg1q3))/Default.aspx?Page=Switch-Between-Multiple-Outlook-Profiles&NS=&AspxAutoDetectCookieSupport=1