Welcome Guest, Not a member yet? Register   Sign In
Sending email from gmail
#5

(This post was last modified: 02-16-2020, 06:30 AM by hmvartak.)

(02-16-2020, 04:37 AM)InsiteFX Wrote:
PHP Code:
$config['protocol']  'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_user'] = 'your_email';
$config['smtp_pass'] = 'your_password';
$config['smtp_port'] = 465;
$config['charset']   'utf-8';
$config['mailtype']  'html';
$config['newline']   "\r\n"

Try that.

That worked!

Actually I had seen that example on stackoverflow. But used to remove the variable $config['newline'] = "\r\n", which seems to be crucial. Also smtp_host must be in the format in example. (I had used smtp.gmail.com, which works in PHPMailer script but not in codeigniter)

Thanks!
Reply


Messages In This Thread
Sending email from gmail - by hmvartak - 02-16-2020, 03:03 AM
RE: Sending email from gmail - by jreklund - 02-16-2020, 03:34 AM
RE: Sending email from gmail - by hmvartak - 02-16-2020, 04:28 AM
RE: Sending email from gmail - by InsiteFX - 02-16-2020, 04:37 AM
RE: Sending email from gmail - by hmvartak - 02-16-2020, 06:29 AM
RE: Sending email from gmail - by Corsari - 04-04-2021, 12:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB