$EmailFrom = “你的电邮地址@gmail.com”
$EmailTo = “收件人地址@somedomain.com”
$Subject = “起个牛B点的标题”
$Body = “正文其实只要写rtrtrtrtrtrtrtrtrtrtrtrtrt就行了”
$SMTPServer = “smtp.gmail.com”
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential(“你的Gmail用户名”, “密码”);
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)
歡迎光臨 比思論壇 (http://108.170.5.99:8181/) | Powered by Discuz! X2.5 |