mailsend icon indicating copy to clipboard operation
mailsend copied to clipboard

-attachment bug

Open azev opened this issue 6 years ago • 3 comments

When using -attachment, althouth the file is attached (seen on email source), is not shown not as inline neither as attachment in the email.

To fix this problem I have to attach the file twice. It almost doubles the sent email size.

azev avatar Jan 20 '19 12:01 azev

@azev, there's no -attachment argument in 1.19. Does it work using -attach when you supply the MIME type and attachment type (inline/attached)? Example of a very explicit command that works for me:

mailsend -t [email protected] -f [email protected] -attach "c:\somewhere\attachment.png,image/png,a" -sub "This Is A Test" -attach "c:\somewhere\messagebody.htm,text/html,i"

amosharper avatar Jan 21 '19 10:01 amosharper

mailsend -to [email protected] -from [email protected] -ssl -auth -port 465 -smtp smtp.somewhere.com -user [email protected] -pass "****" -sub "Test email" -attach "d:\file1.rar",mime_type,a -attach "d:\file2.pdf",mime_type,a

This command will send the email, however the first attachment won't be properly attached, whichever is the first file1.rar or file2.pdf, the first is never attached.

azev avatar Jan 21 '19 12:01 azev

Try this:

mailsend -to [email protected] -from [email protected] -ssl -auth -port 465 -smtp smtp.somewhere.com -user [email protected] -pass "****" -sub "Test email" -mime-type "application/*" -disposition attachment -attach "d:\file1.rar" -attach "d:\file2.pdf"

jax-404 avatar Feb 24 '19 23:02 jax-404