$UserName = “[email protected] ”
$Password = Get-Content .\SecurePassword.txt | ConvertTo-SecureString
$Credential = New-Object -TypeName System.Management.Automation.PSCredential `
-ArgumentList $UserName, $Password
# Send-MailMessage Email
Send-MailMessage -To [email protected] -From [email protected] -Credential $Credential -SmtpServer test.techgeek.biz -UseSsl -Subject “Backup -Body “Backup script completed”