Welcome Guest, Not a member yet? Register   Sign In
Help with Email Class

Hi, community!

This is my first topic.

I have a problem, I'm try to send a email for some users of my system that is based on CI 3.1.11 and the source html of the email is displayed. This is the configurations that I use at this moment:

$config['protocol']    = 'sendmail';
$config['mailpath']    = '/usr/sbin/sendmail';
$config['charset']    = 'utf-8';
$config['mailtype']    = 'html';
$config['wordwrap']    = TRUE;
$config['smtp_host']  = '****';
$config['smtp_user']  = '****';
$config['smtp_pass']  = '****';
$config['smtp_port']  = '25';
$config['smtp_crypto'] = 'tls';

Test message:
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<td style="padding: 20px;" align="center" valign="top">
<td style="padding: 20px;" align="center" valign="top">

But is displayed like it:
[Image: e9cc3f63ed.png]

How I can solve it? Thank you!

(This post was last modified: 10-17-2019, 03:30 AM by mboufos.)

PHP Code:
$config['protocol']    'smtp';
$config['smtp_host']    '****';
$config['smtp_port']    '25';
$config['smtp_timeout'] = '7';
$config['smtp_user']    '*****';
$config['smtp_pass']    '****';
$config['charset']    'utf-8';
$config['newline']    "\r\n";
$config['mailtype'] = 'html';
$config['validation'] = FALSE;
i use those settings with no problems !  check those and let me know

Theme © iAndrew 2016 - Forum software by © MyBB