Files
VSC/PowerShell/_Prove/006-fastmail.ps1
T
claudio 368d6fafea Issue
Code backup
2026-05-10 16:59:01 +02:00

23 lines
951 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
$EmailFrom = "no-replay@pal.it"
$Subject = "PAL SRL - BUONI CARBURANTE Q8"
$EmailTo = "claudio.boggian00@gmail.com"
$Body = "Buongiorno,
a seguito della decisione aziendale di erogare il 'bonus benzina' secondo la possibilità data dallart. 1 del DL n. 5 del 2023 (Decreto carburanti), con la presente invio in allegato il file pdf contenente i buoni carburante Q8.
I buoni potranno essere presentati in cassa (da smartphone o stampati) oppure utilizzati digitando il codice di 26 cifre nella colonnina del distributore self-service, selezionando la voce 'utilizza codice'.
Cordiali saluti,
PAL s.r.l."
$SMTPMessage = New-Object System.Net.Mail.MailMessage($EmailFrom,$EmailTo,$Subject,$Body)
$SMTPClient = New-Object Net.Mail.SmtpClient("paldocker01.pal.local", 25)
$SMTPClient.Send($SMTPMessage)
LogWrite("Send mail to $EmailTo with $FilePath1")
Write-Host("Send mail to $EmailTo") -ForegroundColor Green