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

[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:
But if I comment that out it still errors.

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

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

Example from the User Guide:


$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.');


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

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

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.

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

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

You're welcome. Nope, no affiliation. Smile

Theme © iAndrew 2016 - Forum software by © MyBB