E-Mail Encoding Problem |
Hello Guys
![]() i have a problem with sending e-mails and hope you can help me. The E-Mail Source look different to my View. E-Mail Source: Code: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><h3>Welcome to TestSystem</h3> PHP Code: <h3>Welcome to <?php echo $this->config->item('site_name'); ?></h3> I dont really know, what it can be. Send E-mail: PHP Code: $data = array( ![]()
Remove the / on your br's
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
@InsiteFX: really? I have numerous views for sending e-mail, they all have standard html code, including the <br /> tag.
@Waschi, a tip: PHP Code: To complete the Account-Registration click on the following link: <br /> Although your controller files must be in firstcaps, don't use that in your URL's. That's why I changed it to auth/verify.
Hey Waschi,
The 3E's in your email are encoded '>' characters. So for some reason your character's are converted to another encoding. There are a couple of things you could check or do to avoid conversion problems: 1. use your editor to check if your file has the right encoding. If you want to send an utf-8 encoded html email, the file encoding has to be utf-8 encoded. 2. to avoid all sorts of vage problems in email clients, you should at least send your html email as a website (as explained in the user manual). With html, head and body tags etc. Be sure that your not using relative links. 3. if you set the mail_type to 'html', use the config to specify which encoding you want to use. Hope this helps! -Roger |
Welcome Guest, Not a member yet? Register Sign In |