Differences

This shows you the differences between the selected revisions of the page.

2021-03-31 2022-01-28
blat (martin) missing -Command (although it works without it too) (martin)
Line 44: Line 44:
if exist "%WINSCP_LOG%" set ATTACHMENT=-Attachments '%WINSCP_LOG%' if exist "%WINSCP_LOG%" set ATTACHMENT=-Attachments '%WINSCP_LOG%'
-powershell -ExecutionPolicy Bypass Send-MailMessage ^+powershell -ExecutionPolicy Bypass -Command Send-MailMessage ^
    -From %SMTP_FROM% -To %SMTP_TO% -Subject '%WINSCP_SUBJECT%' -Body '%WINSCP_MESSAGE%' ^     -From %SMTP_FROM% -To %SMTP_TO% -Subject '%WINSCP_SUBJECT%' -Body '%WINSCP_MESSAGE%' ^
    %ATTACHMENT% -SmtpServer %SMTP_SERVER% -UseSsl ^     %ATTACHMENT% -SmtpServer %SMTP_SERVER% -UseSsl ^

Last modified: by martin