summaryrefslogtreecommitdiff
path: root/regress/message/make.pl
blob: eca795f2492cce84b0d75038caa5a3484d94d41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/local/bin/perl
#-*- perl -*-
#
#  Copyright (C) 2001 Ken'ichi Fukamachi
#   All rights reserved. This program is free software; you can
#   redistribute it and/or modify it under the same terms as Perl itself. 
#
# $FML: send.pl,v 1.1 2001/05/05 13:50:59 fukachan Exp $
#

use strict;
use Carp;
use lib qw(../../cpan/lib ../../fml/lib);

#
# make a plain message;
#

use Mail::Message::Compose;
my $msg = Mail::Message::Compose->new(
				      From     =>'fukachan@fml.org',
				      To       =>'rudo@nuinui.net',
				      Cc       =>'kenken@nuinui.net',
				      Subject  =>'Helloooooo, nurse!',
				      Type     =>'text/plain',
				      Path     =>'main.cf',
				      );

$msg->attr('content-type.charset' => 'us-ascii');

print $msg->as_string;

exit 0;