Welcome Guest, Not a member yet? Register   Sign In
email not sentUnable to send email using PHP Sendmail. Your server might not be configured to send mail using this metho
#1

[eluser]Unknown[/eluser]
I am new in codeignaotr.
I manage to send mail in localhost as

$config['protocol']='smtp';
$config['smtp_host']='ssl://smtp.googlemail.com';
$config['smtp_port']='465';
$config['smtp_timeout']='30';
$config['smtp_user']='[email protected]';
$config['smtp_pass']='*******';
$config['charset']='utf-8';
$config['newline']="\r\n";
It work Great but when i upload my site online it doesnot work and display message as
email not sent220-vps2.hostinnepal.com ESMTP Exim 4.80 #2 Mon, 07 Jan 2013 17:30:41 +0545 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.

hello: 250-vps2.hostinnepal.com Hello vps2.hostinnepal.com [68.67.68.27]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250 HELP

Failed to authenticate password. Error: 535 Incorrect authentication data

from: 250 OK

to: 550-Please turn on SMTP Authentication in your mail client, or login to the
550-IMAP/POP3 server before sending your message. vps2.hostinnepal.com
550-(nefeg.org.np) [68.67.68.27]:52122 is not permitted to relay through this
550 server without authentication.

The following SMTP error was encountered: 550-Please turn on SMTP Authentication in your mail client, or login to the 550-IMAP/POP3 server before sending your message. vps2.hostinnepal.com 550-(nefeg.org.np) [68.67.68.27]:52122 is not permitted to relay through this 550 server without authentication.

data: 503-All RCPT commands were rejected with this error:
503-Please turn on SMTP Authentication in your mail client, or login to the
503-IMAP/POP3 server before sending your message. vps2.hostinnepal.com
503-(nefeg.org.np) [68.67.68.27]:52122 is not permitted to relay through this
503-server without authentication.
503 Valid RCPT command must precede DATA

The following SMTP error was encountered: 503-All RCPT commands were rejected with this error: 503-Please turn on SMTP Authentication in your mail client, or login to the 503-IMAP/POP3 server before sending your message. vps2.hostinnepal.com 503-(nefeg.org.np) [68.67.68.27]:52122 is not permitted to relay through this 503-server without authentication. 503 Valid RCPT command must precede DATA
500 unrecognized command
The following SMTP error was encountered: 500 unrecognized command
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
220-vps2.hostinnepal.com ESMTP Exim 4.80 #2 Mon, 07 Jan 2013 17:30:42 +0545 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.

hello: 250-vps2.hostinnepal.com Hello vps2.hostinnepal.com [68.67.68.27]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250 HELP

Failed to authenticate password. Error: 535 Incorrect authentication data

from: 250 OK

to: 550-Please turn on SMTP Authentication in your mail client, or login to the
550-IMAP/POP3 server before sending your message. vps2.hostinnepal.com
550-(nefeg.org.np) [68.67.68.27]:52123 is not permitted to relay through this
550 server without authentication.

The following SMTP error was encountered: 550-Please turn on SMTP Authentication in your mail client, or login to the 550-IMAP/POP3 server before sending your message. vps2.hostinnepal.com 550-(nefeg.org.np) [68.67.68.27]:52123 is not permitted to relay through this 550 server without authentication.

data: 503-All RCPT commands were rejected with this error:
503-Please turn on SMTP Authentication in your mail client, or login to the
503-IMAP/POP3 server before sending your message. vps2.hostinnepal.com
503-(nefeg.org.np) [68.67.68.27]:52123 is not permitted to relay through this
503-server without authentication.
503 Valid RCPT command must precede DATA

The following SMTP error was encountered: 503-All RCPT commands were rejected with this error: 503-Please turn on SMTP Authentication in your mail client, or login to the 503-IMAP/POP3 server before sending your message. vps2.hostinnepal.com 503-(nefeg.org.np) [68.67.68.27]:52123 is not permitted to relay through this 503-server without authentication. 503 Valid RCPT command must precede DATA
500 unrecognized command
The following SMTP error was encountered: 500 unrecognized command
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

User-Agent: CodeIgniter
Date: Mon, 7 Jan 2013 15:45:41 +0400
From: "eeeeeeee"
Return-Path:
To: nefeg2012@yahoo.com
Subject: =?utf-8?Q?Athunicating_Agent?=
Reply-To: "sub_chhu@yahoo.com"
X-Sender: sub_chhu@yahoo.com
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <50eab56624a07@yahoo.com>
Mime-Version: 1.0


Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Full Name = eeeeeeee
Country Name = eeeeeeee
District = eeeee
Email = sub_chhu@yahoo.com

someone please help me i am working to correct this for 5 days and not getting proper solution.

#2

[eluser]Rowan Wilson[/eluser]
Try base64 encoding your username and password in your config then try again.

I followed this guide in the past:
http://blog.arvixe.com/how-to-manually-t...ntication/
#3

[eluser]InsiteFX[/eluser]
You need to setup smtp in your php.ini file, this is the biggest problem with using smtp.

I set mine to my host provider Comcast.

php.ini
Code:
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.comcast.net
; http://php.net/smtp-port
smtp_port = 25




Theme © iAndrew 2016 - Forum software by © MyBB