Problema send mail |
[eluser]Alex Jurado[/eluser]
I try to use the library mail, but get this error, Code: Message: mail() [function.mail]: SMTP server response: 501 5.1.7 Invalid address It means and how I can fix it?
[eluser]Clooner[/eluser]
Make sure you set all the parameters like the from address. In case it still doesn't work show your code!
[eluser]Alex Jurado[/eluser]
Error: Code: Message: mail() [function.mail]: SMTP server response: 501 5.1.7 Invalid address Code: Code: $this->load->library('email'); php.ini Code: [mail function]
[eluser]Clooner[/eluser]
Try setting the email protocol to smtp when loading the library. Code: $this->load->library('email', array('protocol' => 'smtp'));
[eluser]Alex Jurado[/eluser]
Now get an error, Code: You did not specify a SMTP hostname. Code: $this->load->library(
[eluser]Clooner[/eluser]
[quote author="Alex Jurado" date="1343667320"]Now get an error, Code: You did not specify a SMTP hostname. Code: $this->load->library( [/quote] See the manual how to correctly configure the email library for using a smtp server. It's all there http://ellislab.com/codeigniter/user-gui...email.html |
Welcome Guest, Not a member yet? Register Sign In |