Tuesday, May 14, 2013
Send a test email from SharePoint
Hi Friends,
You might be working with email related activities in SharePoint like workflows or alerts in lists and libraries but before that you need to be sure that SharePoint is sending email. You can check it in numerous ways but be sure that Outgoing Email settings is configured properly in Central Administration Site.
Once you are pretty sure that Outgoing Email settings is properly configured it, you can test it on many ways : like adding users to a new SharePoint group. You can also check it via a power shell script as shown below.
_________________________________________________________________________________
$email = "merin@sprealm.com"
$subject = "Life is good"
$body = "Life is good. Be happy."
$site = New-Object Microsoft.SharePoint.SPSite "http://sprealm:5050"
$web = $site.OpenWeb()
[Microsoft.SharePoint.Utilities.SPUtility]::SendEmail($web,0,0,$email,$subject,$body)
_________________________________________________________________________________
Copy the above script in a note pad and save it in a drive with some names like SendEmail.ps1
Then run the script.
Email sent successfully returns true whereas failure returns false.
// A True or False will confirm the message has been sent or not
Reference:http://jeffreypaarhuis.com/2013/02/12/send-test-email-from-sharepoint/
Labels:
Email,
SharePoint 2010,
SharePoint 2013
Location:
Manaus - Amazonas, Brazil
Subscribe to:
Post Comments (Atom)
Sharepoint Realm: Send A Test Email From Sharepoint >>>>> Download Now
ReplyDelete>>>>> Download Full
Sharepoint Realm: Send A Test Email From Sharepoint >>>>> Download LINK
>>>>> Download Now
Sharepoint Realm: Send A Test Email From Sharepoint >>>>> Download Full
>>>>> Download LINK Rz