Changeset 11844


Ignore:
Timestamp:
2006-05-23T13:25:01+12:00 (18 years ago)
Author:
mdewsnip
Message:

Added an option to send the message as HTML.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/sendmail.pl

    r1970 r11844  
    4646             'from/@', \$from,
    4747             'subject/.*/', \$subject,
     48             'html', \$html,
    4849             'smtp/.*', \$smtp,
    4950             'msgfile/.*/', \$msgfile)) {
     
    5556    print STDERR "   -from addr    Address of message sender\n";
    5657    print STDERR "   -subject str  Optional subject line\n";   
     58    print STDERR "   -html         Send message as HTML\n";
    5759    print STDERR "   -smtp server  The outgoing (SMTP) mail server\n";
    5860    print STDERR "   -msgfile file A file from which message to be sent is read.\n";
     
    8183}
    8284
     85$mail{'Content-type'} = "text/html; charset=\"iso-8859-1\"" if ($html);
    8386$mail{'Message'} = $msg;
    8487   
Note: See TracChangeset for help on using the changeset viewer.