
FishMonger
Veteran
Sep 1, 2009, 6:36 AM
Post #26 of 37
(2317 views)
|
|
Re: [xmaverick] Sending Attachment using MIME::Lite
[In reply to]
|
Can't Post
|
|
Try this:
#!/usr/bin/perl use strict; use warnings; my $from = 'elliot.anico@cellularatsea.com'; my $to = 'eanicom@hotmail.com'; my $cc = 'eanicom@gmail.com'; my $subj = 'Testing'; my $body = "test.txt"; open my $pipe, '|-', '/usr/bin/mailx', '-s',$subj, '-c', $cc, $to, "-f$from", or die "can't open pipe to mailx: $!\n"; print $pipe `uuencode $body`; close $pipe;
(This post was edited by FishMonger on Sep 1, 2009, 6:36 AM)
|