I’m unable to send an email through codeigniter. When i tried to echo the error using echo $this->email->print_debugger(); I got the following error:
hello: 250-smtpout17-02.prod.mesa1.secureserver.net
250-PIPELINING
250 8BITMIME
Failed to send AUTH LOGIN command. Error: 502 unimplemented (#5.5.1)
from: 250 ok
to: 553 sorry, relaying denied from your location [---] (#5.7.1)
The following SMTP error was encountered: 553 sorry, relaying denied from your location [--] (#5.7.1)
data: 503 RCPT first (#5.5.1)
The following SMTP error was encountered: 503 RCPT first (#5.5.1)
502 unimplemented (#5.5.1)
The following SMTP error was encountered: 502 unimplemented (#5.5.1)
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
I’m not able to figure out the issue.If you know the reason please help.
The issue was with SMTP-host. I was providing a wrong smtp host and that’s why it was giving me this error.