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.

  1. there few ways send command line emails in linux: how send file email attachment using linux command line?
  2. why -- in command? maybe confusing mutt.
  3. https://unix.stackexchange.com/questions/108916/automatically-attach-a-file-to-a-mail-with-mutt has few more suggestions sending mail mutt.

Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -