CodeIgniter Forums
installing PHPmailer in CI2 third_party folder - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: installing PHPmailer in CI2 third_party folder (/showthread.php?tid=62357)



installing PHPmailer in CI2 third_party folder - rooye - 07-05-2015

hello everyone

I coded my website to send emails using the default mail() function.It worked even with html format emails until a day ago that i recieved the error message:
Unable to send email using PHP mail(). Your server might not be configured to send mail using this method. What can possibly be the problem? I need your help please. I'm also considering using PHPmailer or any other third party mailer yet i don't know how to install it. Thanks in advance for your help.


RE: installing PHPmailer in CI2 third_party folder - Avenirer - 07-06-2015

You could try one of my tutorials: http://avenir.ro/codeigniter-swift-mailer-composer/

The same principle applies for PHPMailer.


RE: installing PHPmailer in CI2 third_party folder - CroNiX - 07-06-2015

As far as why you can't send mail, I'd check with your host to see if anything changed. Perhaps they performed an upgrade or something.

Here's a codeigniter email PHPMailer integration, which overrides CI's default mail functionality. Uses the same CI mail methods as a drop in replacement.

https://github.com/ivantcholakov/codeigniter-phpmailer


RE: installing PHPmailer in CI2 third_party folder - rooye - 07-08-2015

(07-06-2015, 10:51 AM)CroNiX Wrote: As far as why you can't send mail, I'd check with your host to see if anything changed. Perhaps they performed an upgrade or something.

Here's a codeigniter email PHPMailer integration, which overrides CI's default mail functionality. Uses the same CI mail methods as a drop in replacement.

https://github.com/ivantcholakov/codeigniter-phpmailer

Thanks for the suggestion.however,I see that i need some parameter such as SMTP Username and passwd.Am not sure of were to get that.I used the credentials of an email account i created on my domain but authentication failed.so too with my own gmail account.Am still battling and need your help.Thanks