Welcome Guest, Not a member yet? Register   Sign In
Email Error
#1

[eluser]Unknown[/eluser]
I am trying to send an email using CI and am getting the "Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method." error.

The output of print_debugger is

Code:
220 mail.wlnetguard.co.uk ESMTP Merak 8.5.0-8; Mon, 29 Mar 2010 16:24:23 +0100

hello: 250-mail.wlnetguard.co.uk Hello test.my-hull.co.uk [10.10.0.187], pleased to meet you.
250-ENHANCEDSTATUSCODES
250-SIZE
250-EXPN
250-ETRN
250-ATRN
250-DSN
250-CHECKPOINT
250-8BITMIME
250-AUTH CRAM-MD5 DIGEST-MD5 LOGIN PLAIN
250-AUTH=LOGIN
250-STARTTLS
250 HELP

from: 250 2.1.0 ... Sender ok

to: 250 2.1.5 ... Recipient ok; will forward

data: 354 Enter mail, end with "." on a line by itself


The following SMTP error was encountered:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

User-Agent: CodeIgniter
Date: Mon, 29 Mar 2010 16:19:05 +0100
From: "My Hull"
Return-Path:
To: [email protected]
Subject: =?utf-8?Q?My_Hull_-_Forgotten_Password?=
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_4bb0c4e933037"

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

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

New password for My Hull Username : USERNAME Password : PASSWORD Hull login
page


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

<h2>New password for My Hull</h2><p>Username : USERNAME </p><p>Password : PASSWORD </p><p><a >My=
Hull login page</a></p>

--B_ALT_4bb0c4e933037--

I have used telnet on the server that hosts the site to connect to the mail server and encountered no problems.

I have been looking through the code and it seems like it is line "$reply = $this->_get_smtp_data();" in system/library/Email.php isn't returning any text and causing the mail not to send.

Can any one shed some light on this problem for me please? I have spent most of the day on this and can't figure it out for the life of me.

Thanks
#2

[eluser]2think[/eluser]
Post the controller code you're using to send the email




Theme © iAndrew 2016 - Forum software by © MyBB