html emails using email class |
[eluser]rossmurphy[/eluser]
And here are my email settings in application/config/email.php Code: $config['useragent'] = "CodeIgniter";
[eluser]rossmurphy[/eluser]
Ok so i used a new installation of codeigniter to test this. Here is my code: Code: <?php This is what i am still getting: Quote:{site= _name} | Forgot Password Notification
[eluser]JHackamack[/eluser]
Well your single quotes are preventing the variables from being replaced, so thats one problem.
[eluser]rossmurphy[/eluser]
I'm not using the parser here so don't worry about that.
[eluser]JHackamack[/eluser]
Downloaded a fresh CI install Copied your code (except put it in the welcome controller as i was too lazy) And received the HTML Email using the Apple Mail Program. All I changed was the config.php file to point to localhost Welcome.php Code: <?php Code: User-Agent: CodeIgniter
[eluser]WebsiteDuck[/eluser]
This has to do with your lines being over 76 characters long, and the content-transfer-encoding being quoted-printable. Even in JHackamack's debug the equal signs are present, but his email client is stripping them out. Seems like an e-mail client issue. Maybe it's confused as to why you would use 8bit encoding for your text/plain part, and 7bit encoding for your text/html part (not you personally, but codeigniter)
[eluser]rossmurphy[/eluser]
Thanks for your help. Can anyone point me to a CI tutorial for sending HTML email? I cannot get a single HTML email to send properly. But in 1.7.1 i had no problem. I tried to change the miltipart setting to related and in the debugger i saw the correct email but in my email it was blank.
[eluser]JHackamack[/eluser]
Double check your email connection settings. Make sure your host supports either php's native mailer or sendmail. If you want a tutorial you can use my above example as a good starting point, as it successfully works.
[eluser]WebsiteDuck[/eluser]
This won't help you with codeigniter's library, but you might use it for testing: Code: $to = "[email protected]";
[eluser]codepotato[/eluser]
Hi, I think i've solved this problem here : http://ellislab.com/forums/viewthread/69463/#811241 |
Welcome Guest, Not a member yet? Register Sign In |