muquit / mailsend-go

mailsend-go is a multi-platform command line tool to send mail via SMTP protocol
Other
168 stars 16 forks source link

-Inline is ignored #27

Open Ho52198 opened 4 years ago

Ho52198 commented 4 years ago

Hello, I am following the example, but -inline imagie is ignored. I know is only a hint, but is not working on both my work e-mail (outlook) and in gmail.

My code is:

mailsend-go -f some@email.com -t some@email.com -smtp 192.168.252.8 -port 25 body -file body.txt attach -file "D:\develop\size\plot.png" -inline

Please assist

muquit commented 4 years ago

I'm not surprised about outlook. However, it works fine with gmail, I tested it again. In gmail, inline image is displayed. In gmail, Show original shows the following, notice the Content-Disposition is inline. How does your content look like?

--efff25afa1b9cfb01b66ccca86772b7b0bd51a943e832838178cc90e9e0a
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8; charset=UTF-8

Text file as body. png image is inline.

--efff25afa1b9cfb01b66ccca86772b7b0bd51a943e832838178cc90e9e0a
Content-Disposition: inline; filename="cat.png"
Content-ID: <cat.png>
Content-Transfer-Encoding: base64
Content-Type: image/png; name="cat.png"

--efff25afa1b9cfb01b66ccca86772b7b0bd51a943e832838178cc90e9e0a--
Ho52198 commented 4 years ago

Hello, This is form gmail :

Content-Disposition: inline; filename="plot.png" Content-ID: Content-Transfer-Encoding: base64 Content-Type: image/png; name="plot.png"