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()









Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, April 16, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250