mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Improve the done output
This commit is contained in:
@ -27,6 +27,7 @@ try {
|
||||
$msg.subject = $Subject
|
||||
$msg.body = $Body
|
||||
$smtp.Send($msg)
|
||||
"✔️ Message sent."
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user