Welcome Guest, Not a member yet? Register   Sign In
SMTP not working
#1

[eluser]Unknown[/eluser]
Hi,

My email comfiguration files looks like:

$config=array(
'protocol' => 'smtp',
'smtp_host' => 'mail.servergrove.com',
'smtp_user' => 'username',
'smtp_pass' => 'password',
'mailtype' => 'html',
'crlf' => '\r\n',
'newline' => '\r\n',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE
);

I am using above configuration to send mail but it give below error.


220 mx-mia-1.servergrove.com SMTP - http://www.servergrove.com/ ESMTP

hello: 250-mx-mia-1.servergrove.com
250-AUTH LOGIN
250-AUTH=LOGIN
250-PIPELINING
250 8BITMIME

from: 250 ok

to: 250 ok

data: 354 go ahead

451 stray newline detected. see http://cr.yp.to/docs/smtplf.html
The following SMTP error was encountered: 451 stray newline detected. see http://cr.yp.to/docs/smtplf.html
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

User-Agent: CodeIgniter
Date: Mon, 30 Jan 2012 07:10:18 -0500
From:
Return-Path:
To: [email protected]
Subject: =?iso-8859-1?Q?CabEasy_Contact_Us_Enquiry?=
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0


Content-Type: multipart/alternative; boundary="B_ALT_4f2688aa944fc"

Please help me to solve that problem.
#2

[eluser]InsiteFX[/eluser]
If you are running on a localhost system then you need to setup smtp in your php.ini file!

Plus your error message is telling you whats wrong, you have an extra newline in your code.




Theme © iAndrew 2016 - Forum software by © MyBB