Fix email issues
This fixes several email issues:
- fixes #416 (closed) : the email body is set in html and automatically converted to
text/plain
by the html2text function in PHPMailer. We need to set the CharSet toutf-8
first. - fixes #419 (closed) : the
a
tags in html emails are stripped by html2text. When the contents of the tag is the url too, this isn’t a problem. In the “edit link for poll” email, the contents of the email is an actual text. The fix is to use a custom (“advanced”) html2text function that extracts the url from thea
tag along the contents.