Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6038

mail: Invalid header when sending mail attachment with Ubuntu

$
0
0

This exact question was posted by user 'anvd' on 29th July but then removed - I found it on Google Cached version...!

I'm guessing the fix was something obvious, but would be great if it wasn't removed.

I am trying this command to send an email with an attachment.

echo 'These are contents of my daily backup' | mail -s 'Daily backup' -a /tmp/filename.gz mymail@hotmail.com

The error: mail: Invalid header: /tmp/filename.gz

The email gets sent, but the attachment is not attached.

This used to work, and still dos on other systems, but not sure what has changed on one of my machines...


Viewing all articles
Browse latest Browse all 6038

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>