Monday, 13 July 2015

Out Going Mail configuration SharePoint 2013 Troubleshooting

In Central Administration-> System settings-> Configuration Outgoing e-mail settings.

If you are on External SMTP server then create Local SMTP server using IIS manager 6.0 , check you have configured Server Manger of Windows OS 2012 with Features SMTP server installed and Telnet client, you can enable the Telnet client from Windows -> control Panel-> Programs and Features ->Turn Windows Features on or off -> and Check the option Telnet client.

Once your configuration of Outgoing email is done with required information of SMTP server and from address. You can test the server using two options
Using Power shell command in SharePoint Power Shell Management tool.
1. Provide valid email address, subject, body and site address.
$email = "mukund.l@Test.com"
$subject = "Test SP2013 subject"
$body = "Test body"
$site = New-Object Microsoft.SharePoint.SPSite "http://<siteurl>/sites/test"
$web = $site.OpenWeb()[Microsoft.SharePoint.Utilities.SPUtility]::SendEmail($web,0,0,$email,$subject,$body)
2. Paste this above lines with your valid information and hit enter if you get response "True" that means you can configured correctly and you get an email of specified email address.
Using Telnet commands
Open the command prompts (as admin) and type Telnet on command Prompt.
  • Type - open "smtp.server.name.com" 25
  • Enter "helo" to say hi to smtp server type helo not hello.
  • Type mail from:mukund@test.com you will get message reply,250 2.1.0 mukund@test.com....Sender OK
  • Type rcpt to:mukund@test.com you get reply message 250 2.1.5 mukund@test.comyou will get message reply, 354 Start mail input; end with <CRLF>.<CRLF>
  • Enter "data" press enter and type "small testing message"
  • Enter "." just a dot and hit enter. you get a message ,250 2.6.0 <Your machineName20s1b9mT000000004@Test.com> Queued mail for delivery
These are the basic test and troubleshooting methods, which can be tried on SharePoint 2013 server. Hope this helps to find you quick ways to troubleshoot sending outgoing emails. 

About Author:
Mukund Lahane is a consultant in Systems Plus Pvt. Ltd. Within Systems Plus, he actively contributes to the areas of Technology and Information Security. He can be contacted at mukund.l@spluspl.com

1 comment: