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...)
In reply to Re: mutt issue
by almut
in thread mutt issue
by prafull
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |