CodeIgniter Forums
Error with Email Class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Error with Email Class (/showthread.php?tid=8472)



Error with Email Class - El Forum - 05-19-2008

[eluser]louis w[/eluser]
I am using the CI Email class with protocol = smtp and smtp_host set to the server address. No user or pass is set because the email server does not require it from my ip address.

I am getting this error:

502 Error: command not implemented

Seems like it is happening right after this:
$this->_send_data('.');
But if I comment that out it still errors.


Error with Email Class - El Forum - 05-19-2008

[eluser]Silvrbak[/eluser]
I don't think that is a function of the Email class. If you can post your code.


Error with Email Class - El Forum - 05-19-2008

[eluser]louis w[/eluser]
Not sure what is a function of the email class?


Error with Email Class - El Forum - 05-19-2008

[eluser]Silvrbak[/eluser]
Example from the User Guide:

Code:
$this->load->library('email');

$this->email->from('[email protected]', 'Your Name');
$this->email->to('[email protected]');
$this->email->cc('[email protected]');
$this->email->bcc('[email protected]');

$this->email->subject('Email Test');
$this->email->message('Testing the email class.');

$this->email->send();

echo $this->email->print_debugger();



Error with Email Class - El Forum - 05-19-2008

[eluser]louis w[/eluser]
I know how to use the email library. Wondering what the error "502 Error: command not implemented" is coming from. I did a google and the descriptions seem quite vague.

I am using the smtp protocol with no u/p.


Error with Email Class - El Forum - 05-19-2008

[eluser]Silvrbak[/eluser]
Ohhh, sorry about that. You're right about the error being vague. Even the RFC doesn't really define it. Check your server's mail logs if you can. It looks like you are trying to send a command that is not supported by SMTP or the command is malformed.


Error with Email Class - El Forum - 05-19-2008

[eluser]louis w[/eluser]
Thanks SB.

BTW, Are you affiliated with http://www.silverbackapp.com/ ?


Error with Email Class - El Forum - 05-19-2008

[eluser]Silvrbak[/eluser]
You're welcome. Nope, no affiliation. Smile