Salesforce

Adsolut: Mail verzenden met Powershell (Testmail)

Article Information
BE
Article Details
$MyEmail = "verzend@mail.be"
$SMTP= "smtp.server.be"
$To = "Ontvangst@mail.be"
$Subject = "Test Mail"
$Body = "Test Mail - Adsolut"
$Creds = (Get-Credential -Credential "$MyEmail")

Start-Sleep 2

Send-MailMessage -To $to -From $MyEmail -Subject $Subject -Body $Body -SmtpServer $SMTP -Credential $Creds -UseSsl -Port 587 -DeliveryNotificationOption never



Opslaan als:
.ps1




 
detail information
19/11/2021 17:32
Adsolut: Mail verzenden met Powershell (Testmail)
41
URL
Mail-verzenden-met-Powershell-Testmail

Powered by