![]() |
E-Mail Encoding Problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: E-Mail Encoding Problem (/showthread.php?tid=66290) |
E-Mail Encoding Problem - Waschi - 10-05-2016 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( ![]() RE: E-Mail Encoding Problem - InsiteFX - 10-05-2016 Remove the / on your br's RE: E-Mail Encoding Problem - Wouter60 - 10-05-2016 @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. RE: E-Mail Encoding Problem - RogerMore - 10-06-2016 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 RE: E-Mail Encoding Problem - Waschi - 10-11-2016 @InsiteFX That didnt really helped. @Wouter60 You are right, that looks really better ![]() My Solution was to add this: PHP Code: $this->email->set_crlf( "\r\n" ); Thank you anyway guys ![]() |