1

How to send mails with URL with swaks. For instance, how would you to send the following mail?

link

I tried without sucess

swaks -t recipient@mail.com \
--body link<https://en.wikipedia.org/wiki/Main_Page>

Since it is what appear if we display the message as a raw message.

4

The email without the mime headers would come across as plain text. The mime headers make the message body gets seen as HTML.

swaks --body '<a href="https://en.wikipedia.org/wiki/Main_Page">link</a>' - --add-header "MIME-Version: 1.0" --add-header "Content-Type: text/html" -t recipient@mail.com
  • Can you explain how this solves the problem? – chicks Apr 24 '17 at 16:32
  • @chicks the email without the mime headers would come across as plain text, The mime headers make the message body get seen as HTML. – Zoredache Apr 24 '17 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.