send emails on localhost via codeigniter to gmail

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Thank u so much.its working.but the 'smtp_port' is 465 instead of 25

lameesaabdulkhader
Автор

Hello, I am using macOS with XAMPP, after I running your code, it doesn't pop up the error, but I didn't receive the email, I really don't know why

lhsnnvx
Автор

Can you give the source code of this one thank you

maikerukun
Автор

I do not receive anything on email. Do I have to install something before for SMTP?

xBiiaBianca
Автор

It getting error on server :

Message: fsockopen(): unable to connect to ssl://smtp.googlemail.com:465 (Permission denied)

Filename: libraries/Email.php

RushikeshRaghuwanshi
Автор

Message: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

i got this error did you help me about this?

aliraza-tjqq
Автор

My mail going to the spam..do u have any solution for that..

nikunjhatkar
Автор

Severity warning
Message: fsockopen(): unable to connect to to find the socket transport "465ssl" - did you forget to enable it when you configured php?)

Filename libraries/email.php

Line number 2069

sandeepskurup
Автор

if it's not working in your project .. just did this

$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = '465';
$config['smtp_timeout'] = '7';
$config['smtp_pass'] = '*your_password*;
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['mailtype'] = 'html';
$config['validation'] = FALSE;



$this->email->subject('Email Test');
email send');


$result = $this->email->send();

DannyWilimsius