Php 在localhost中未使用tank_auth发送邮件

Php 在localhost中未使用tank_auth发送邮件,php,codeigniter,Php,Codeigniter,我使用坦克认证和发送邮件是不适合我。我现在正在检查它是否忘记了密码。我试了很多,参考了很多关于同一个问题的帖子。但对我来说什么都不管用。我用的是zohomail。以下是我迄今为止尝试过的代码 我在config/email.php中添加了以下内容 $config['protocol']='smtp'; $config['smtp_host']='ssl://smtp.zoho.com'; $config['smtp_port']='465'; $config['smtp_timeout']='3

我使用坦克认证和发送邮件是不适合我。我现在正在检查它是否忘记了密码。我试了很多,参考了很多关于同一个问题的帖子。但对我来说什么都不管用。我用的是zohomail。以下是我迄今为止尝试过的代码

我在config/email.php中添加了以下内容

$config['protocol']='smtp';
$config['smtp_host']='ssl://smtp.zoho.com'; 
$config['smtp_port']='465';
$config['smtp_timeout']='30';
$config['smtp_user']='myemail'; 
$config['smtp_pass']='mypass'; 
$config['charset']='utf-8';
$config['newline']='\r\n';
不会对任何文件进行其他更改。我得到的输出如下所示:

220 mx.zohomail.com SMTP Server ready March 10, 2014 12:35:17 AM PDT 

hello: 250-mx.zohomail.com Hello localhost (61.3.161.53 (61.3.161.53))
250-AUTH LOGIN PLAIN
250 SIZE 25000000
from: 250 Sender  OK
to: 250 Recipient  OK
data: 354 Ok Send data ending with .

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, 10 Mar 2014 13:05:15 +0530
From: "NOS-7094" <wm@nnnn.com>
Return-Path: <wm@nnnn.com>
Reply-To: "NOS-7094" <wm@nnnn.com>
To: myemail.com
Subject: =?utf-8?Q?Forgot_your_password_on_NOS-7094=3f?=
X-Sender: wm@nnnn.com
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <531d6b335db13@nnnn.com>
Mime-Version: 1.0


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

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

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

Hi user,

Forgot your password, huh? No big deal.
To create a new password, just follow this link:

http://localhost/workspace/project/index.php/auth/reset_password/1/95e4b28205efe5da5da2c6a7f625b58c

You received this email, because it was requested by a N-7094 user. This
is part of the procedure to create a new password on the system. If you DID
NOT request a new password then please ignore this email and your password
will remain the same.


Thank you,
The N-7094 Team


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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.=
w3.org/TR/html4/loose.dtd">
<html>
<head><title>Create a new password on NOS-7094</title></head>
<body>
<div style=3D"max-width: 800px; margin: 0; padding: 30px 0;">
<table width=3D"80%" border=3D"0" cellpadding=3D"0" cellspacing=3D"0">
<tr>
<td width=3D"5%"></td>
<td align=3D"left" width=3D"95%" style=3D"font: 13px/18px Arial, Helvetica,=
 sans-serif;">
<h2 style=3D"font: normal 20px/23px Arial, Helvetica, sans-serif; margin: 0=
; padding: 0 0 18px; color: black;">Create a new password</h2>
Forgot your password, huh? No big deal.<br />
To create a new password, just follow this link:<br />
<br />
<big style=3D"font: 16px/18px Arial, Helvetica, sans-serif;"><b><a href=3D"=
http://localhost/workspace/project/index.php/auth/reset_password/1/95e4b2820=
5efe5da5da2c6a7f625b58c" style=3D"color: #3366cc;">Create a new password</a=
></b></big><br />
<br />
Link doesn't work? Copy the following link to your browser address bar:<br =
/>
<nobr><a href=3D"http://localhost/workspace/project/index.php/auth/reset_pas=
sword/1/95e4b28205efe5da5da2c6a7f625b58c" style=3D"color: #3366cc;">http://=
localhost/workspace/project/index.php/auth/reset_password/1/95e4b28205efe5da=
5da2c6a7f625b58c</a></nobr><br />
<br />
<br />
You received this email, because it was requested by a <a href=3D"http://lo=
calhost/workspace/project/index.php" style=3D"color: #3366cc;">NOS-7094</a> =
user. This is part of the procedure to create a new password on the system.=
 If you DID NOT request a new password then please ignore this email and yo=
ur password will remain the same.<br />
<br />
<br />
Thank you,<br />
The N-7094 Team
</td>
</tr>
</table>
</div>
</body>
    </html>

--B_ALT_531d6b335db5e--
220 mx.zohomail.com SMTP服务器准备就绪2014年3月10日12:35:17美国太平洋时间凌晨
你好:250-mx.zohomail.com你好本地主机(61.3.161.53(61.3.161.53))
250-AUTH普通登录
250号250万
发件人:250发送方OK
收件人:250收件人可以吗
数据:354 Ok发送以结尾的数据。
遇到以下SMTP错误:
无法使用PHP SMTP发送电子邮件。您的服务器可能未配置为使用此方法发送邮件。
用户代理:CodeIgniter
日期:2014年3月10日星期一13:05:15+0530
发件人:“NOS-7094”
返回路径:
答复:“NOS-7094”
致:myemail.com
主题:=?utf-8?Q?忘记了\u号7094=3f上的密码=
X-Sender:wm@nnnn.com
X-Mailer:CodeIgniter
X优先级:3(正常)
消息ID:
Mime版本:1.0
内容类型:多部分/备选;boundary=“B_ALT_531d6b335db5e”
这是MIME格式的多部分消息。
您的电子邮件应用程序可能不支持此格式。
--B_ALT_531d6b335db5e
内容类型:文本/纯文本;字符集=utf-8
内容传输编码:8比特
嗨,用户,
忘了你的密码,嗯?没什么大不了的。
要创建新密码,只需点击以下链接:
http://localhost/workspace/project/index.php/auth/reset_password/1/95e4b28205efe5da5da2c6a7f625b58c
您收到此电子邮件,因为它是由N-7094用户请求的。这
是在系统上创建新密码过程的一部分。如果是的话
不请求新密码,请忽略此电子邮件和您的密码
将保持不变。
非常感谢。
N-7094团队
--B_ALT_531d6b335db5e
内容类型:text/html;字符集=utf-8
内容传输编码:引用可打印
在NOS-7094上创建新密码
创建新密码
忘了你的密码,嗯?没什么大不了的。
要创建新密码,只需点击以下链接:




您收到此电子邮件,因为它是由= 用户。这是在系统上创建新密码过程的一部分= 如果您没有请求新密码,请忽略此电子邮件并重试= 您的密码将保持不变。


谢谢你,
N-7094团队 --B_ALT_531d6b335db5e--

请帮助我在本地主机上发送邮件。

?您有本地邮件服务器吗?是的,来自本地主机。使用smtp,我们可以从本地主机发送邮件,对吗??