• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send email KingHost

#1
[eluser]cebalzer[/eluser]
Hello everybody, I'm having problems sending mail using the server KingHost, anyone ever had this problem, please pass me some information that might be useful.
Let me explain what is happening:
When I set up to send emails through google account, I have no problems, but if I change to server configuration, there begins the problems.
I'll post the code I'm using the configuration directly in the controller for items.
Code:
$config['protocol'] = 'smtp';
                $config['smtp_host'] = 'smtp.meusite.com.br';
                //$config['smtp_host'] = 'smtp-web.kinghost.net';
                //$config['smtp_port'] = '587';
                $config['smtp_port'] = '25';
                $config['smtp_timeout'] = '7';
                $config['smtp_user'] = '[email protected]';
                $config['smtp_pass'] = 'passw';
                //$config['smtp_pass'] = '';
                $config['wordwrap'] = true;
                $config['charset'] = 'utf-8';
                $config['newline'] = "\r\n";
                $config['mailtype'] = 'html';
                $config['validation'] = TRUE;
                $this->email->initialize($config);
                $this->email->from('meusite.com.br', 'Meu site');
                $this->email->to($usr->email);
                $this->email->subject('Contato');
                $this->email->set_newline("\r\n");
So I put a debug in the email to see what is happening
Code:
220 smtp-web.kinghost.net ESMTP

hello: 250-smtp-web.kinghost.net
250-PIPELINING
250-SIZE 4194304
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

Failed to send AUTH LOGIN command. Error: 503 5.5.1 Error: authentication not enabled

from: 250 2.1.0 Ok

to: 504 5.5.2 : Sender address rejected: need fully-qualified address

The following SMTP error was encountered: 504 5.5.2 : Sender address rejected: need fully-qualified address

data: 554 5.5.1 Error: no valid recipients

The following SMTP error was encountered: 554 5.5.1 Error: no valid recipients
221 2.7.0 Error: I can break rules, too. Goodbye.
The following SMTP error was encountered: 221 2.7.0 Error: I can break rules, too. Goodbye.
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

User-Agent: CodeIgniter
Date: Wed, 8 Aug 2012 15:55:38 -0300
From: =?utf-8?Q?Administra=c3=a7=c3=a3o?=
Return-Path:
To: [email protected]
Subject: =?utf-8?Q?Contato?=
Reply-To: "meusite.com.br"
X-Sender: meusite.com.br
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <5022b62adcec3>
Mime-Version: 1.0


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

This is a multi-part message in MIME format.
Your email application may not support this format.

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



--B_ALT_5022b62adcfc2
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable


--B_ALT_5022b62adcfc2--
Would anyone can help me if I'm thankful, for I am with this problem are already weeks and no support could answer my question.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.