-1

How to send mail using smtp in windows batch script file. We have only SMTP server name and Port no.is this enough to send mail

saren vs
  • 1
  • 2
  • Can use PowerShell? If so, then https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/send-mailmessage?view=powershell-7.3 – Craig Aug 18 '23 at 01:22
  • Depending on your Windows version, I have no idea if Blat will still work ... https://www.blat.net/ – Craig Aug 18 '23 at 01:24
  • If you can use PowerShell you can use the Send-Mailmessage cmdlet. If not, the tool `blat` works at least as far as Win10 and Server 2019, and probably works with win11/Server 2022 – Tangentially Perpendicular Aug 18 '23 at 01:37

0 Answers0