t/sendmail.t
raw| 1 | #!/usr/bin/perl |
| 2 | use strict; |
| 3 | use warnings; |
| 4 | |
| 5 | use MIME::Lite; |
| 6 | use Test::More tests => 2; |
| 7 | |
| 8 | use_ok('MIME::Lite') or exit 1; |
| 9 | |
| 10 | # set up dummy sendmail args. |
| 11 | MIME::Lite->send('sendmail', '/foo/bar/sendmail -x -y -z'); |
| 12 | |
| 13 | # retrieve the settings. |
| 14 | my @prev = MIME::Lite->send(sendmail => '/foo/bar/sendmail'); |
| 15 | |
| 16 | is_deeply \@prev, ['sendmail', '/foo/bar/sendmail -x -y -z'], |
| 17 | 'sendmail args updated'; |