html email still sending as text/plain |
[eluser]doubleplusgood[/eluser]
Hey, The email sending at the very bottom is actually to send an email to an external service which in turn sends the user a text message to their mobile phone.
[eluser]LuckyFella73[/eluser]
I noticed quite after posting that your are sending not the same message at that lines ... sorry Did you try the code?
[eluser]doubleplusgood[/eluser]
No worries. ![]() ![]()
[eluser]LuckyFella73[/eluser]
Very strange.. I now uploaded the script to our server and made a test. All data you get by POST were hardcoded in my testfile for saving time reasons and I replaced my email adresses in th debug text before posting here .. Everything worked fine. Here my debug text: Quote:Your message has been successfully sent using the following protocol: mail<br /><pre>User-Agent: CodeIgniter So your script seems to work. I didn't change anything from the codeblock I posted back besides the POST data lines.
[eluser]doubleplusgood[/eluser]
Hey. I notice in yours that you also have Content-Type: text/plain; charset=utf-8. :S This issue became apparent because the $description is some html formatted text coming from the database, which isn't displaying correctly in the email. ![]()
[eluser]LuckyFella73[/eluser]
When you look more closely at the debug text you will find both: Content-Type: text/plain; charset=utf-8 and Content-Type: text/html; charset=utf-8 As far as I know the plaintext version is send as well for e-mail clients which are not able to render html mails ("multi-part message"). The text in my testmail was displayed correctly (ie pound sign). I think the debug text is not displayed correct because I didn't set up a html header with meta utf-8. I checked my testmail (gmail) by clicking at "show original": there I can see both versions (plain and html) - looks nearly like the debug msg from CI. Edit: for I can see the "bold-parts" in my mail the html version obviously arrived.. Sorry that I don't have more ideas where to look or what could be wrong, hope that informations help you to get on track |
Welcome Guest, Not a member yet? Register Sign In |