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 [email protected] \
--body link<https://en.wikipedia.org/wiki/Main_Page>

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

1

1 Answer 1

6

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 [email protected]
2
  • Can you explain how this solves the problem?
    – chicks
    Apr 24, 2017 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, 2017 at 18:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .