domingo, 21 de febrero de 2016

sending email with attachment


Resolution

Either use mutt -a or mailx -a
  • mutt -a
    1. yum install mutt
    2. echo "MESSAGE BODY" | mutt -s "SUBJECT" -a "FILEPATH" "ANOTHERFILE" -- USER@DOM.TLD
      • Leave off the echo completely to enter message body interactively


Either use mutt -a or mailx -a
  • mutt -a
    1. yum install mutt
    2. echo "MESSAGE BODY" | mutt -s "SUBJECT" -a "FILEPATH" "ANOTHERFILE" -- USER@DOM.TLD
      • Leave off the echo completely to enter message body interactivel




echo "MESSAGE BODY" | mutt -s "SUBJECT" -a "/var/www/html/demo/1.csv" "/var/www/html/demo/2.csv" -- ambiorixg12@gmail.com

https://access.redhat.com/solutions/104833

No hay comentarios:

Publicar un comentario