If you enter the SP Web url incorrectly, it will keep asking. # check to ensure is loaded $snapin = Get-PSSnapin | Where-Object Īs you can see below the script will ask for input and you will specify the SPWeb url, E-Mail recipient, E-Mail Subject and E-Mail Body. I find this script very useful when testing mail flow from Sharepoint since it uses the "SPUtility::SendEmail" API, sends mail, captures the correct logs and presents them by launching notepad, all from a single server. However, since it was buried in process, I wanted to create a separate post just sharing the script, because it will be easier to maintain and use separately when needed. The following PowerShell script was written for my post on configuring TLS between SharePoint and Exchange.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |