Command to send email from Office 365
$EmailFrom = “myaccount@domain.com”
$EmailTo = “emailaddress@domain.com”
$Subject = “Test from O365 SMTP”
$Body = “Test from O365 SMTP Authentication”
$SMTPServer = “smtp.office365.com”
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential(“myaccount@domain.com”, “*****”);
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)
$EmailFrom = “myaccount@domain.com”
$EmailTo = “emailaddress@domain.com”
$Subject = “Test from O365 SMTP”
$Body = “Test from O365 SMTP Authentication”
$SMTPServer = “smtp.office365.com”
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential(“myaccount@domain.com”, “*****”);
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)
Great Site, The Course were so simple and easy to understand.
ReplyDeleteOffice 365 Training
Office 365 Online Training
wonderful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
ReplyDeleteoracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
hadoop training in chennai
hadoop training in bangalore