Articles → POWERSHELL → Send an email using PowerShell script
Send an email using PowerShell script
Steps
$Outlook = New-Object -ComObject Outlook.Application
$Mail = $Outlook.CreateItem(0)
$Mail.To = "abc@gmail.com"
$Mail.Subject = "Test Subject"
$Mail.Body ="Test mail"
$Mail.Send()