Skip to content

Commit

Permalink
log sending email
Browse files Browse the repository at this point in the history
  • Loading branch information
jmclaren7 committed Sep 25, 2023
1 parent 9787191 commit 7a90b62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SimpleBackup.au3
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ Switch $Command
$sSubject = StringStripWS($sSubject, 1)
$sBody = $Result

_ConsoleWrite("Sending Email " & $sSubject)
_INetSmtpMailCom(_KeyValue($aConfig, "SMTP_Server"), _KeyValue($aConfig, "SMTP_FromName"), _KeyValue($aConfig, "SMTP_FromAddress"), _
_KeyValue($aConfig, "SMTP_ToAddress"), $sSubject, $sBody, _KeyValue($aConfig, "SMTP_UserName"), _KeyValue($aConfig, "SMTP_Password"))

EndIf

_Restic("forget --prune " & _KeyValue($aConfig, "Backup_Prune"))
Expand Down

0 comments on commit 7a90b62

Please sign in to comment.