in reply to mutt issue
Something like this:
#!/usr/bin/perl my $address = 'some@address'; my $attachment = 'some.file'; my $subject = 'some subject'; system "mutt -a '$attachment' -s '$subject' '$address' </dev/null";
But beware what you interpolate — the command line is executed by the shell!
(Instead of the </dev/null (for no mail body), you could also pipe some message to the command...)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: mutt issue
by afoken (Chancellor) on Jul 27, 2010 at 12:24 UTC |
In Section
Seekers of Perl Wisdom