hello
Google
Welcome to Carpe Diem: Flaphead@Home Sign in | Join | Help

Carpe Diem: Flaphead.com

Seize the Day

News


  • Add to Technorati Favorites <script type="text/javascript" src="http://technorati.com/embed/3ni3q36ikc.js"> </script>
    This information is provided "AS IS" with no warranties, and confers no rights. Also some of the information contains my views and thoughts.
    <script src="http://widgets.technorati.com/t.js" type="text/javascript" charset="UTF-8"></script>

    Add Me! - Search Engine Optimization

    I heart FeedBurner

Send-Mail.ps1 v3.2 [7 November 2008]

v3.0 6 August 2008     : Removed the GUI form the original script
v3.1 22 August 2008 : Updated to "autofind" a hub server if -server is not specified
v3.2 7 November 2008 : Some minor tweeks. Added event logging.Added Error Event logging

This script uses .net (System.Net.Mail.MailMessage) to send an email
 - Reports output to the Application EventLog with Event IDs of:
  18 Script Starting
 19 Script Finished
 1801 Details of sent message
 1802 Details of any errors

COMMANDLINE OPTIONS

No Commandline .......... This help text
-? ...................... This help text
-server <Server Name>  .. Default is localhost.
                          If you specify "AutoDiscover" a Hub Transport Server
      will be randomly selected
-from <email address> ... From Email Address. Default is nobody@send-mail.ps1
-to <email address> ..... TO email address
-cc <email address> ..... CC email address
-bcc <email address> .... BCC email address
-toCSV <CSV file name> .. CSV file with email address.
-ccCSV <CSV file name> .. CSV file with email address.
-bccCSV <CSV file name> . CSV file with email address.
-subject <Text> ......... Message Subject.
                           Default value will be set if not specified
-body <Text> ............ Message Body.
                           Default value will be set if not specified
-attachment <Path and Filename>
-msgcount <Number> ...... Number of messages to be sent.  Default is 1
-verbose ...............  Turns on verbose mode

 

Posted: 19 November 2008 14:02 by Paul Flaherty
Attachment(s): send-mail.ps1

Comments

subject: exchange said:

Next Version of Exchange Named Exchange 2010? Microsoft Exchange&#39;s challenges: Partners, the cloud

# November 21, 2008 19:43

subject: exchange said:

Next Version of Exchange Named Exchange 2010? Microsoft Exchange&#39;s challenges: Partners, the cloud

# November 21, 2008 19:48
New Comments to this post are disabled