Welcome Guest, Not a member yet? Register   Sign In
Broken html email?
#2

(This post was last modified: 11-05-2017, 08:38 AM by SomeGuy.)

Figured out why it's breaking, not the fix.

/application/config/email.php
PHP Code:
<?php defined('BASEPATH') OR die('No direct script access allowed.');

$config['protocol'] = 'mail'# production' === ENVIRONMENT ? 'smtp' : 'mail';

$config['smtp_crypto'] = 'tls';
$config['smtp_host'] = 'in-v3.mailjet.com';
$config['smtp_port'] = '587';
$config['smtp_user'] = '';
$config['smtp_pass'] = '';
$config['charset'] = 'utf-8';
$config['mailtype'] = 'html';
$config['newline'] = "\n";

# This causes HTML emails to break
# Something to do with Email::_prep_quoted_printable()
# $config['newline'] = "\r\n"; 

Maybe someone could enlighten me.

Possible fix at: http://php.net/manual/en/function.quoted...php#115840 - I haven't investigated though.
Reply


Messages In This Thread
Broken html email? - by SomeGuy - 11-04-2017, 05:10 PM
RE: Broken html email? - by SomeGuy - 11-05-2017, 07:50 AM
RE: Broken html email? - by skunkbad - 11-05-2017, 09:07 AM
RE: Broken html email? - by SomeGuy - 11-05-2017, 10:04 AM
RE: Broken html email? - by skunkbad - 11-05-2017, 11:46 AM
RE: Broken html email? - by SomeGuy - 11-05-2017, 02:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB