mailsend icon indicating copy to clipboard operation
mailsend copied to clipboard

Combine html text

Open oriye opened this issue 8 years ago • 3 comments

Hi,

i want to combine a html text. i run this command:

mailsend -t [email protected] -f [email protected] -name NAME -ssl -port 465 -auth -smtp smtp.gmail.com -sub "Hello" -content-type "text/html" -M "<b>hello world</b>" -user [email protected] -pass password

and this email message appears:

image

how i remove --h1ffccko3plpiZ9k Content-Type: text/plain; charset=utf-8 Content-Disposition: inline and -h1ffccko3plpiZ9k--

??

i mean only "hello world" will appears in the text message.

Thanks.

oriye avatar Dec 20 '16 09:12 oriye

Hi I have the same problem. How can one solve it? Thanks

flado74 avatar Jan 13 '17 11:01 flado74

Use -mime-type instead of -content-type. They are not the same thing. -content-type is used for embedding images in HTML. There are bunch of test_embed scripts in test/ directory to show how to embed images in HTML.

Thanks.

muquit avatar Jan 13 '17 17:01 muquit

Thanks, That helped. Also realized that the order of the parameters is very important. Was trying to send a html coded email togheter with an attachment (not inline) and could not succeed until I changed the order of the params. Not sure what in my previous order was wrong, but now it works! Mailsend is a great little tool, but some more documentation would be great! Thanks :-)

flado74 avatar Jan 15 '17 10:01 flado74