Send mail with attachment over smtp locally

Development | Programming languages
Author
autor-image
Marek Petrovič
Content

Send mail with attachment over smtp locally? No password for send emial. Its posible?

Attachments
No attachments

Deadline: 31.12.2030

Comments
autor-image
Linux Administrator
Ingsoftware - A Full-Cycle Software
  • 5.0
send_mail.ps1

$EmailFrom = “email@from.com”

$EmailTo = “email@to.com”

$Subject = “Pozor mspdHandlerInstance Subject Text”

$Body = “Pozor mspdHandlerInstance Body Test”

$SMTPServer = “exchange.company.com”

$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)

$SMTPClient.EnableSsl = $true

$SMTPClient.Credentials = New-Object System.Net.NetworkCredential(“”, “”);

$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)

31.01.2021, 23:30:33
-
You must be logged for add a new comment and price offer! LOGIN
We use cookies to give you the best possible experience on our site. By continuing to use the site you agree to our use of cookies. Find out more Accept