Thread: Sending eMails
View Single Post
Old 10-20-2006   #5 (permalink)
Fred J.


 
 

Re: Sending eMails

Matt,
I found the .NET Framework Class Library references in the MSDN library
for SmtpClient Class and SmtpClient.Send Method (MailMessage) .
However, can you give me some hints on how you transform that
documentation into the example you showed? Or is there another class
that i missed?

Thank you,
Fred Jacobowitz

Matt Hamilton wrote:
> That seems a bit excessive. How about:
>
> (new-object Net.Mail.SmtpClient -arg
> "mailserver.example.com").Send("from@powershell.com", "to@example.com",
> "Subject", "Here is some mail from PowerShell.")


My System SpecsSystem Spec