diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-02-19 18:30:42 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-02-19 18:30:42 -0800 |
commit | a0aaff1c093d24a0067074c06e85ccb15d8ecdc8 (patch) | |
tree | 452e28ea4ccd05f65813dbef875388542ed1db6d /bin/mailtest | |
parent | 65326fcac5b2de80d211df3fc160745fb2f46b9b (diff) |
adding some old random tools from the CVS tree
Diffstat (limited to 'bin/mailtest')
-rwxr-xr-x | bin/mailtest | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/mailtest b/bin/mailtest new file mode 100755 index 000000000..4821d9cfa --- /dev/null +++ b/bin/mailtest @@ -0,0 +1,18 @@ +#!/usr/bin/perl + +use FS::UID qw(adminsuidsetup); +use FS::Misc (send_email); +use FS::Record; + +adminsuidsetup(shift) or die "usage: mailtest username\n"; + +my $error = FS::Misc::send_email ( + from => 'ivan-test@freeside.biz', + to => 'ivan-test@freeside.biz', + subject => 'Testing SASL', + body => [ "hi there\n", "i'm testing SASL\n" ], +); + +die "can't send test email: $error\n" + if $error; + |