Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combination of swithes: add-header and attach-body (html) #40

Closed
stemberajan opened this issue Dec 7, 2021 · 2 comments
Closed

Combination of swithes: add-header and attach-body (html) #40

stemberajan opened this issue Dec 7, 2021 · 2 comments

Comments

@stemberajan
Copy link

stemberajan commented Dec 7, 2021

If I send the email with these switches:
--add-header "Content-Type: text/html; charset=UTF-8"
and
--attach-type text/html --attach-body @/something

received email is without html body.

If I send it only with --attach-type text/html --attach-body @/something, everything is ok.

Is possible to say(to write down switches): the email is in UTF-8 and it has the html attachment?

@jetmore
Copy link
Owner

jetmore commented Dec 8, 2021

You can't do this with current functionality (unless you craft the entire message by hand and pass it in with --data. The issue is that --add-header "Content-Type: text/html; charset=UTF-8" would add a top-level header to the email, but attach changes the message into a MIME email and you wand to set the charset=UTF-8 on the mimepart. This is technically a duplicate to #32 so I'm going to close this as a dupe. Feel free to reopen if I'm missing something or add more detail to the other issue.

@jetmore
Copy link
Owner

jetmore commented Dec 8, 2021

Duplicate of #32

@jetmore jetmore marked this as a duplicate of #32 Dec 8, 2021
@jetmore jetmore closed this as completed Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants