Closed felixkoch closed 12 years ago
I think it is better to use the newline-parameter of mb_encode_mimeheader()
mb_encode_mimeheader($this->headers[$header], 'UTF-8', 'Q', $this->config['newline'])
mb_encode_mimeheader() uses per default \r\n. If you user '\n' instead and the encoded subject line is longer than 76 chars Lotus Notes will break the header and interpretes the next lines of the header as body.
Thanks for the tip! I'll look into this.
@FrenkyNet Any chance of picking this up for 1.2?
Hey,
in Germany we often send emails with german umlauts in the subject, some email clients can't handle german umlauts if they aren't mime encoded (email headers should only contain ASCII-chars).
My solution (it's not very clean):
And in driver.php
Names of email-adresses should be mime-encoded, too: In driver.php I changed:
But this is not the best solution, because if there are dots and other special chars in the email names the name should be quoted. And when they are quoted, extra quotes should be escaped.
This is the reason, why i present my solution as one solution but not as THE solutions. I'm sure, the maintainers will find a better and stable solution, which fits better in the coding style of fuelphp.
Thank you and best regards Felix