--- trunk/sender.pl 2005/05/18 13:12:54 45 +++ trunk/sender.pl 2005/05/24 14:02:05 47 @@ -40,6 +40,8 @@ "inbox=s" => \$opt->{'inbox'}, "debug" => \$debug, "verbose" => \$verbose, + "from=s" => \$opt->{'from'}, + "driver=s" => \$opt->{'email_send_driver'}, ); my $nos = new Nos( @@ -73,6 +75,9 @@ Adds new list. You can also feed list name as first line to C. +You can also add C<--from='Full name of list'> to specify full name (comment) +in outgoing e-mail. + =cut if ($list_name = $opt->{'new'}) { @@ -84,6 +89,7 @@ my $id = $nos->new_list( list => $list_name, + from => ($opt->{'from'} || ''), email => $email, ) || die "can't add list $list_name\n"; @@ -199,11 +205,14 @@ Send e-mails waiting in queue, or with optional argument, just send messages for single list. +Optional argument C<--driver=smtp> forces sending using SMTP server at +localhost (127.0.0.1). + =cut } elsif (defined($list_name = $opt->{'send'})) { - $nos->send_queued_messages($list_name); + $nos->send_queued_messages($list_name, $opt->{'email_send_driver'}); =item --inbox=list_name