Open the Sendmail_Lite.ps1 script with a text editor and modify the variables at the start of the script to match your environment. Call this script using Powershell with the proper arrangement of ...
- By default, SPUtility.SendEmail() method picks the ‘From address’ from Outgoing E-Mail Settings in Central administration. - Use SPUtility.IsEmailServerSet ...
$Message = new-object Net.Mail.MailMessage $smtp = new-object Net.Mail.SmtpClient("smtp.gmail.com", 587) $smtp.Credentials = New-Object System.Net.NetworkCredential ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results