muquit / mailsend

A program to send mail via SMTP from command line
Other
294 stars 68 forks source link

Disposition always INLINE for attachments #70

Open antonio-petricca opened 9 years ago

antonio-petricca commented 9 years ago

I'm trying to send an atachment by this command, but I get always the attachment as inline, and not attached to the email:

mailsend -smtp smtp1.xxx.it -user xxx -pass xxx-disposition attachment -f xxx@xxx.it -H "xxx xxx" -t xxx@xxx.it -sub "xxx" -mime-type "text/html" -enc-type "8bit" -cs "us-ascii" -attach xxx.txt -M "xxx xxx xxx" -v

Could you help me soon?

Thank you!!!

muquit commented 9 years ago

I tried with mailsend v1.17b15, I do not see Content-Disposition of the attached file is inline. It's an hint to the mail reader, however some reader can display it as inline, may be that's what you're seeing? Thanks.

Here is what I see:

......
--QfO7L4XJry+MD0BO
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
one html attachment 1
--QfO7L4XJry+MD0BO
Content-Type: text/html; charset=us-ascii
Content-Disposition: attachment; filename="test.txt"
Content-Transfer-Encoding: 8bit
......
--QfO7L4XJry+MD0BO--