Hi,
According to your post, my understanding is that you couldnt use the PowerShell to send email in SharePoint 2013.
There can be multiple reasons for it.
At first, youd better check if you configure outgoing e-mail and incoming email for your SharePoint 2013 farm.
There are two articles about how to
configure outgoing e-mail and incoming email for your SharePoint 2013 farm.
http://technet.microsoft.com/en-us/library/cc288949(v=office.14).aspx
http://technet.microsoft.com/en-us/library/cc262947(v=office.15).aspx
And then,
youd better
check whether your anti-virus software blocking to connect SMTP server using PowerShell.
I recommend you to check with the following steps:
-
Right click on McAfee icon
-
Click on Virus Scan Console
-
Double click on Access Protection on VirusScan Console
-
On Access Protection tab
-
Go to Anti-Virus Standard Protection
-
On right hand side, double click on Prevent mass mailing worms from sending mail
-
On process to exclude tab, add PowerShell.exe at the end
-
Click ok
-
Click apply on Access Protection
- Click ok
Then you can try again to use the PowerShell to send mail.
For more information, you can refer to:
http://dhimantr.blogspot.com/2013/06/send-mailmessage-unable-to-connect-to.html
In addition, there is an article about how to check if
SMTP Port 25 is blocked.
http://kb.siteground.com/smtp_port_25_blocked/
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com.