Problem with sending SMTP mail in codeigniter |
[eluser]mattesticels[/eluser]
Hello all, this is the first time I have posted here ![]() been using codeigniter for little project of mine and absolutely love it, however I can not solve this problem I have with the email class, specifically smtp and googles email servers I think? I know that this problem has occurred before as I checked on these forums before posting but it did not help me. The error i recieve is Quote:An Error Was Encountered Here is the function to send the email Code: function email_password() { I have added the Code: extension=php_openssl.dll Could you please help me with this much appreciation will be returned too you.
[eluser]InsiteFX[/eluser]
Code: $this->load->library('email'); InsiteFX
[eluser]mattesticels[/eluser]
When i add that this error comes up Quote:An Error Was Encountered
[eluser]InsiteFX[/eluser]
From what I see you are sending and receiving from the same account! Most email servers will not allow that. InsiteFX
[eluser]mattesticels[/eluser]
changed to a different email address now I get this error Quote:An Error Was Encountered
[eluser]InsiteFX[/eluser]
Try removing this: Code: // $config['mail_path'] = 'ssl://smtp.googlemail.com'; Try setting a timeout higher: Code: $config['smtp_timeout'] = 5; Try this also, in php.ini: Code: [mail function] InsiteFX
[eluser]mattesticels[/eluser]
So worked out that the actual send to address was not being filled in which was causing all the problems. Thank you InsiteFX for helping me though.
[eluser]missiria[/eluser]
I put and test with this configuration code but is not work this is the error for me : Code: An Error Was Encountered
[eluser]missiria[/eluser]
Yeaaaaaah it's Exim4 I installed it and configure with my server Thanks man (y) |
Welcome Guest, Not a member yet? Register Sign In |