How to send an mime/html-email by command line ?
I'm trying to send a html-email with an attached pdf encoded by mime and uuencode through a command line like:
cat html-email.txt | mail
Content-type: multipart/mixed; Boundary="boundary-string"
<H1> Hello ! </H1>
Content-Disposition: attachment; filename="reader.pdf"
begin 644 reader.pdf
It works if I give the TO: at the commandline, but when I open it, it's just many letters, the content is not recognized.
What have I to do that mail get the addresses out of the file and when I open it's HTML with attachement ?