linux - Perl - How to send local mail? -
i integrate following terminal command perl script.
terminal command:
mutt -s "user monitoring" -a "/home/mipa/documents/system_monitoring/protocol_name.csv" -- mipa@localhost.localdomain
the command sends local mail containing file attachment user on same system.
i have small problem command though. seem require more user interaction command listed here. command requires user follow menu confirm values , hit "y" key send.
my question here two-folded. there similar mail command not require user interaction , works following single command predefined flags? , how integrate command perl script able choose file name, , receiving user followed issuing command?
any guidance regarding possible solution highly appreciated.
- there few ways send command line emails in linux: how send file email attachment using linux command line?
- why
--
in command? maybe confusingmutt
. - https://unix.stackexchange.com/questions/108916/automatically-attach-a-file-to-a-mail-with-mutt has few more suggestions sending mail
mutt
.
Comments
Post a Comment