5 use Email::Simple::Creator;
9 my $email = Email::Simple->create(
11 From => 'foo@example.com',
12 To => 'drain@example.com',
13 Subject => 'Message in a bottle',
14 'Message-ID' => 'helloworld',
16 body => 'hello there!'
19 my $e = Email::Archive->new();
20 $e->connect('dbi:SQLite:dbname=test.db');
21 print "sending @{[$email->as_string]}\n";
24 my $found = $e->retrieve('helloworld');
25 print $found->as_string;