Welcome Guest, Not a member yet? Register   Sign In
Error with Email Class
#1

[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.
#2

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

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

[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();
#5

[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.
#6

[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.
#7

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB