Display: Cloud | List
Most Popular Tags
Results (5 total) All > powershell (x) > system.net.mail.mailmessage (x)
Sample using PowerShell (MailMessage Constructor (String, String) (System.Net.Mail))
<#.SYNOPSIS This script creates and sends an email using SMTP..DESCRIPTION This script firt creates a mail message, populates it with subject and body, creates an SMTP client that sends the email message. Any errors are captured. If everythign works there is no output.NOTES File Name : get-autohelp.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Ve
Last modified by Thomas Lee on 9/24/2010 8:37:05 AM
Sample Using PowerShell (MailMessage Constructor (String, String) (System.Net.Mail))
<#.SYNOPSIS This script creates and sends an email using SMTP..DESCRIPTION This script firt creates a mail message, populates it with subject and body, creates an SMTP client that sends the email message. Any errors are captured. If everythign works there is no output.NOTES File Name : get-autohelp.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Ve
Last modified by Thomas Lee on 9/23/2010 9:38:14 PM
Sample using PowerShell (SmtpClient.Send Method (String, String, String, String) (System.Net.Mail))
<#.SYNOPSIS This script crealtes and sends an SMTP email message..DESCRIPTION This script first creates a system.net.mail.mailmessage, and populates it. Next, it creates an system.Net.Mail.SmtpClient, which then sends the message to the SMTP Server, and onwards transmission. This script is effectively a re-write of the C# sample above..NOTES File Name : Send-EmailMessage.ps1
Last modified by Thomas Lee on 9/5/2009 2:04:55 PM
Send Method Sample using PowerShell (SmtpClient.Send Method (System.Net.Mail))
<#.SYNOPSIS This script crealtes and sends an SMTP email message..DESCRIPTION This script first creates a system.net.mail.mailmessage, and populates it. Next, it creates an system.Net.Mail.SmtpClient, which then sends the message to the SMTP Server, and onwards transmission. This script is effectively a re-write of the C# sample above..NOTES File Name : Send-EmailMessage.ps1
Last modified by Thomas Lee on 9/5/2009 2:04:01 PM
Simple SMTPClient Sample Using PowerShell (SmtpClient Class (System.Net.Mail))
<#.SYNOPSIS This script crealtes and sends an SMTP email message..DESCRIPTION This script first creates a system.net.mail.mailmessage, and populates it. Next, it creates an system.Net.Mail.SmtpClient, which then sends the message to the SMTP Server, and onwards transmission. This script is effectively a re-write of the C# sample above..NOTES File Name : Send-EmailMessage.ps1
Last modified by Thomas Lee on 9/5/2009 2:02:52 PM
Page view tracker