Тёмный

send emails on localhost via codeigniter to gmail 

webeasystep
Подписаться 4,8 тыс.
Просмотров 27 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@RushikeshRaghuwanshi
@RushikeshRaghuwanshi 4 года назад
It getting error on server : Message: fsockopen(): unable to connect to ssl://smtp.googlemail.com:465 (Permission denied) Filename: libraries/Email.php
@lameesaabdulkhader4513
@lameesaabdulkhader4513 6 лет назад
Thank u so much.its working.but the 'smtp_port' is 465 instead of 25
@张德超-h8v
@张德超-h8v 4 года назад
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
@DannyWilimsius
@DannyWilimsius 6 лет назад
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_user'] = 'yourmail@mail.com'; $config['smtp_pass'] = '*your_password*; $config['charset'] = 'utf-8'; $config['newline'] = " "; $config['mailtype'] = 'html'; $config['validation'] = FALSE; $this->load->library('email'); $this->email->initialize($config); $this->email->from('yourmail@mail.com', 'admin '); $this->email->to('send_to_who@gmail.com'); $this->email->subject('Email Test'); $this->email->message('Testing email send'); $this->email->set_newline(" "); $result = $this->email->send(); var_dump($this->email->print_debugger());
@everythinghave5691
@everythinghave5691 4 года назад
thank u it's ok
@aliraza-tj1qq
@aliraza-tj1qq 6 лет назад
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?
@asmaiman1626
@asmaiman1626 6 лет назад
same error if you find the solution plz share.
@Webeasystep
@Webeasystep 6 лет назад
Hi ali and Iman,it is so easy to fix this error just go to php.ini and change these values like that [mail function] ; For Win32 only. ; php.net/smtp SMTP = ssl://smtp.gmail.com ; php.net/smtp-port smtp_port = 465 ; For Win32 only. ; php.net/sendmail-from sendmail_from = YourMail@gmail.com
@xBiiaBianca
@xBiiaBianca 7 лет назад
I do not receive anything on email. Do I have to install something before for SMTP?
@Webeasystep
@Webeasystep 7 лет назад
I think you need to change SMTP settings in your xampp or wamp in localhost you should get the latest Gmail SMTP setting from Google and set it to php.ini and think it will work good
@xBiiaBianca
@xBiiaBianca 7 лет назад
ok thank you
@Webeasystep
@Webeasystep 7 лет назад
you are welcome Bianca :)
@nikunjhatkar2758
@nikunjhatkar2758 7 лет назад
My mail going to the spam..do u have any solution for that..
@Webeasystep
@Webeasystep 7 лет назад
it sometimes depends on the server which sends these mails
@maikerukun7477
@maikerukun7477 6 лет назад
Can you give the source code of this one thank you
@illaignaillaigna6052
@illaignaillaigna6052 2 года назад
not working
@jedatobe
@jedatobe 5 лет назад
Not working.
@allstar1528
@allstar1528 6 лет назад
NOT working...
@Webeasystep
@Webeasystep 6 лет назад
try using my comment to ali raza
@sandeepskurup1925
@sandeepskurup1925 5 лет назад
Severity warning Message: fsockopen(): unable to connect to 465ssl://smtp.googlemail.com:465(Unable to find the socket transport "465ssl" - did you forget to enable it when you configured php?) Filename libraries/email.php Line number 2069
@Webeasystep
@Webeasystep 5 лет назад
This means that you have to enable SSL
@AmitSingh-im5kd
@AmitSingh-im5kd 4 года назад
Great
@RaviKumar-hr8fz
@RaviKumar-hr8fz 7 лет назад
it's good
@ankittiwari8436
@ankittiwari8436 5 лет назад
not working
@manojitchakraborty3095
@manojitchakraborty3095 6 лет назад
Not working
Далее
Sent mail using SMTP in Codeigniter
10:53
Просмотров 19 тыс.
🎙А НЕ СПЕТЬ ли мне ПЕСНЮ?🕺🏼
3:06:10
How to send mail in codeigniter
18:54
Просмотров 15 тыс.
The TRIPLE FOLDING phone has a Problem.
12:54
Просмотров 1,9 млн
Should you use Bun, Deno etc. instead of Node.js?
7:28
CodeIgniter Day 3 - Sending emails
18:27
Просмотров 46 тыс.
codeigniter composer integration
8:35
Просмотров 12 тыс.