Mail sending error, please help me out |
[eluser]sridhar2do[/eluser]
Code in Controller Code: function sendmsg(){ error message: Code: A PHP Error was encountered
[eluser]ivantcholakov[/eluser]
See https://github.com/ivantcholakov/codeigniter-phpmailer Try to use this library of mine. application/config/email.php: Code: <?php defined('BASEPATH') OR exit('No direct script access allowed.'); And testing within a controller: Code: $this->load->library('email'); I did a similar test. The setting Code: $config['useragent'] = 'PHPMailer'; works for me, but with the setting Code: $config['useragent'] = 'CodeIgniter'; I had no success.
[eluser]noideawhattotypehere[/eluser]
Isnt gmails smtp port 587? At least thats what im using with ssmtp...
[eluser]ivantcholakov[/eluser]
[quote author="noideawhattotypehere" date="1375266466"]Isnt gmails smtp port 587? At least thats what im using with ssmtp...[/quote] A Gmail configuration example, using port 587: application/config/email.php: Code: <?php defined('BASEPATH') OR exit('No direct script access allowed.'); These are the changed settings in comparison with the previously posted example: $config['smtp_port'] = 587; $config['smtp_crypto'] = 'tls'; |
Welcome Guest, Not a member yet? Register Sign In |