Failed To Send Auth Login Command. Error 502 Unimplemented #5.5.1
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unable to send email using codeigniter up vote -6 down vote favorite 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. codeigniter email sendmail codeigniter-2 share|improve this question asked Nov 12 '12 at 14:05 Sachin Prasad 3,11983162 can u show code which u r using..... –Venkat Nov 12 '12 at 16:34 add a comment| 4 Answers 4 active oldest votes up vote 3 down vote Hi this code which i used for my project. I am sending from Gmail so change as per your server. function sendMail() { $config = Array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.googlemail.com', 'smtp_port' => 465, 'smtp_user' => 'xxx@gmail.com', // change it to yours 'smtp_pass' => 'xxx', // change it to yours 'mailtype' => 'html', 'charset' => 'iso-8859-1', 'wordwrap' => TRUE ); $message = ''; $this->load->library('email', $config); $this->email->set_newline("\r\n"); $this->email->from('xxx@gmail.com'); // change it to yours $this->email->to('xxx@gmail.com');// change it to yours $this->email->subject('Resume from JobsBuddy for your Job posting'); $this->email->message($message); if($this->email->send()) { echo 'Email sent.'; } else { show_error($this->email->print_debugger()); } } share|improve this answer answered Nov 12 '12
Suite Administrator HelpG Suite AdministratorHelp forumForum Contact us Service issues (Gmail, Calendar, etc)GmailBounced and Delayed Messages GoogleApps is now G Suite. Same service, new name. More about the name change. SMTP Error ReferenceTo help identify the source of errors, Gmail adds "gsmtp" to all errors it generates. Gmail also adds "-gdcp" to custom errors generated from PVC policies, such as Default Routing rules.For example: "550 5.7.1 This messageviolatesexample.comemail policy. - gcdp
email, but http://www.chilkatforum.com/questions/8798/smtp-login-fails-after-1st-success when he tries a 2nd, receives the following http://squirrelmail.org/wiki/MailServerSMTPProblem error: SendEmail: DllDate: May 8 2015 ChilkatVersion: 9.5.0.49 UnlockPrefix: RAYMONMAILQ Username: D4KDM9R1:George Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 0 sendEmailInner: renderToMime: createEmailForSending: xSigningAlg: sha1 Auto-generating Message-ID --createEmailForSending renderToMime: Elapsed time: failed to 0 millisec --renderToMime sendMimeInner: progressTotal: 1434 ensureSmtpSession: ensureSmtpConnection: SmtpHost: smtp.onecommunications.net SmtpPort: 25 SmtpUsername: george.dawkins@binnewater.com SmtpSsl: 0 StartTLS: 0 smtpConnect: smtpHostname: smtp.onecommunications.net smtpPort: 25 connectionIsReady: Need new SMTP connection --connectionIsReady smtpSocketConnect: socketOptions: SO_SNDBUF: 262144 SO_RCVBUF: 4194304 TCP_NODELAY: 1 SO_KEEPALIVE: 1 --socketOptions failed to send --smtpSocketConnect smtpGreeting: readSmtpResponse: SmtpCmdResp: 220 *********************************** --readSmtpResponse --smtpGreeting ehloCommand: sendCmdToSmtp: SmtpCmdSent: EHLO D4KDM9R1
RecentChanges | Preferences I need help, i get the following error when i try to send an email. Error connecting to SMTP Server. 111 : Connection refused SMTP (sending mail) is very spam sensitive .. last thing you want is to be a open-relay. So an SMTP server needs to be picky on from who it accepts mail. If it refuses mail, blame it on the Server, not on the tool that is connecting to it. If you are using sendmail, you need to tell it to listen to to ports other than the localhost: http://www.seifried.org/security/os/linux/redhat/20011031-rh72-sendmail.html If you are using qmail, and get this error: "Command not implemented Server replied: 502 unimplemented (#5.5.1)" Change SMTP Authentication to 'None' in the config (under SMTP Settings) Fedora Core 4 runs Apache under SE Linux settings, so it cannot connect to the mail system (SMTP, IMAP, sendmail). Temporarily disable SE Linux with this: "setenforce 0" and restart Apache. You can permanently disable SE Linux with the instructions here: http://fedora.redhat.com/docs/selinux-faq-fc3/index.html#id2825880 Edit this document | View document history Document last modified Thu, 22 Oct 2009 13:04:03 Search: © 1999-2016 by The SquirrelMail Project Team