swaks icon indicating copy to clipboard operation
swaks copied to clipboard

[Help] attaching images inline body using --attach-body

Open spice42 opened this issue 2 years ago • 1 comments

.

spice42 avatar Dec 24 '23 07:12 spice42

Swaks can't do this. I'll keep this ticket open in case I ever get into serious MIME mangling, but I don't really anticipate doing this

jetmore avatar Jan 07 '24 20:01 jetmore

closing since the original author removed the body of their query

jetmore avatar Mar 05 '24 20:03 jetmore

Hi @jetmore

Does this mean you can't currently send an email with an image embeded in it?

I am using swaks to assist in developing a helpdesk package, and so sometimes users will have images in the body of their email, or company logos etc in the footer of their emails.

Is there a way to emulate this?

Cheers,


For Reference - The original question asked by redcat was :

I saw this

swaks --attach-type text/html --attach-body @report.html

here https://www.jetmore.org/john/code/swaks/faq.html

was curious if it is possible to attach images inline in body of the email.

--attach works fine to attach the images as an attachment, inline would be neat, if possible.

calumk avatar Apr 05 '24 06:04 calumk

@calumk there's nothing technically impossible about sending any message type, the problem is who is responsible for building the message. If you build the message you want outside of swaks, you can just used --data to send it verbatim. But swaks has fairly minimal MIME tooling and doesn't currently know anything about inline images. Something could probably be added if someone sent me something like "with a command line like this, I'd like to see a resulting SMTP data section that looks like this". Probably in a different ticket than this one

jetmore avatar Jul 27 '24 19:07 jetmore