-
kaptenhisyam
Newbie
-
Posts: 6
Threads: 1
Joined: Nov 2014
Reputation:
0
Hi, I'm getting this error everytime i try to send email. The problem is the email is sent, but there's still error. The email setting is as follow. When I check the mail server/provider, it doesn't support TLS, is it the problem?(we are using SSL)
Code: An Error Was Encountered
220 smtp.xxx.xxx.my ESMTP IceWarp 11.0.1.3 x64; Tue, 11 Nov 2014 13:45:34 +0800
hello: 250-smtp.xxx.xxx.my Hello xxx.xxx.xxx.my [10.xx.0.xx], pleased to meet you.
250-ENHANCEDSTATUSCODES
250-SIZE
250-EXPN
250-ETRN
250-ATRN
250-DSN
250-CHECKPOINT
250-8BITMIME
250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5 GSSAPI
250-VRFY
250 HELP
from: 250 2.1.0 ... Sender ok
to: 250 2.1.5 ... Recipient ok
data: 354 Enter mail, end with "." on a line by itself
250 2.6.0 2450 bytes received in 00:00:00; Message id 201411111345346908 accepted for delivery
quit: 221 2.0.0 smtp.xxx.xxx.my closing connection
Your message has been successfully sent using the following protocol: smtp
220 smtp.xxx.xxx.my ESMTP IceWarp 11.0.1.3 x64; Tue, 11 Nov 2014 13:45:35 +0800
hello: 250-smtp.xxx.xxx.my Hello xxx.xxx.xxx.my [10.xx.0.xx], pleased to meet you.
250-ENHANCEDSTATUSCODES
250-SIZE
250-EXPN
250-ETRN
250-ATRN
250-DSN
250-CHECKPOINT
250-8BITMIME
250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5 GSSAPI
250-VRFY
250 HELP
from: 250 2.1.0 ... Sender ok
to: 550 5.1.1 <> User unknown; rejecting
The following SMTP error was encountered: 550 5.1.1 <> User unknown; rejecting
data: 503 5.5.1 Incorrect command sequence
The following SMTP error was encountered: 503 5.5.1 Incorrect command sequence
500 5.5.1 Command unrecognized: "User-Agent: CodeIgniter"
The following SMTP error was encountered: 500 5.5.1 Command unrecognized: "User-Agent: CodeIgniter"
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
User-Agent: CodeIgniter
Date: Tue, 11 Nov 2014 13:45:18 +0800
From: "xxx"
Return-Path:
Subject: =?iso-8859-1?Q?[NEW]_TEST16?=
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
The Email Config:
Code: $Config = array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://xxx.xxx.xxx.my',
'smtp_port' => 465,
'smtp_user' => '[email protected]',
'smtp_pass' => 'xxxxx',
'mailtype'=>'html'
);
$this->load->library(array('session','exxx'));
$this->load->library('email', $Config);
$this->load->helper(array('url','form'));
$this->load->model('Exxx_model');
$this->load->database();
foreach($lsreceiver as $key => $val):
$this->email->clear();
$emailContent = $this->exxx->emailContent($this->Exxx_model->getFullname($lsreceiver[$key]),$subject,$date_letter,$from_name.", ".$from_address,0,0);
$email = $this->Exxx_model->getEmail($lsreceiver[$key]);
$this->email->set_newline("\r\n");
$this->email->set_crlf( "\r\n" );
$this->email->from('[email protected]','XXX');
$this->email->to($email);
$this->email->subject("[NEW] ".$subject);
$this->email->message($emailContent);
if (!$this->email->send()) {
show_error($this->email->print_debugger());
}
else {
true;
}
Thanks for the help, I will appreciate it a lot
-
kaptenhisyam
Newbie
-
Posts: 6
Threads: 1
Joined: Nov 2014
Reputation:
0
(11-13-2014, 12:19 AM)Rufnex Wrote: Do you get a detail error log who tells you what is happend?
Thanks anyway for the response What do you mean by detail error log? the error above is generated by this : $this->email->print_debugger();
-
kaptenhisyam
Newbie
-
Posts: 6
Threads: 1
Joined: Nov 2014
Reputation:
0
11-13-2014, 01:33 AM
(This post was last modified: 11-13-2014, 01:33 AM by kaptenhisyam.)
i've try the var_dump but it return null, but i'm sure there's data
-
kaptenhisyam
Newbie
-
Posts: 6
Threads: 1
Joined: Nov 2014
Reputation:
0
yes, there are few errors such as 550 5.5.1, 503 5.5.1..the thing is this error only occured when it is sent to specific user eg: mike@ abc.edu.my, but for other address with same alias, the email has no problem sending
-
kaptenhisyam
Newbie
-
Posts: 6
Threads: 1
Joined: Nov 2014
Reputation:
0
(11-13-2014, 02:01 AM)sv3tli0 Wrote: Can you copy here what string there is at $email after that line
Code: $email = $this->Exxx_model->getEmail($lsreceiver[$key]);
just this:
$this->email->set_newline("\r\n");
$this->email->set_crlf( "\r\n" );
$this->email->from(' [email protected]','XXX');
$this->email->to($email);
$this->email->subject("[NEW] ".$subject);
$this->email->message($emailContent);
if (!$this->email->send()) {
show_error($this->email->print_debugger());
}
else {
true;
}
|