用户注册的密码都是用EMAIL发送。我自己建立了一个Drupal的站点,但找不到这个发送email功能的相关设置。我在自己的机子上用GreenAMP测试,Email发不出去。请教各位大虾,谢谢!
哪个版本的GreenAMP?应该没有包括邮件发送程序吧?
我注册超级用户时,出现这个,但我数据库里已经增加,但我不知道密码阿??? Fatal error: Call to undefined function: mail() in /var/www/html/modules/user.module on line 399
function user_mail($mail, $subject, $message, $header) { if (variable_get('smtp_library', '') && file_exists(variable_get('smtp_library', ''))) { include_once variable_get('smtp_library', ''); return user_mail_wrapper($mail, $subject, $message, $header); } else { return mail( /*user.module on line 399就是这一行,我到前面查了,就是没有定义mail这个函数,这是为什么呢?我下载的 drupal-4.6.3 英文版,php的版本PHP 4.3.3 (cli) (built: Feb 3 2004 00:07:09)到底为什么呢? */ $mail, mime_header_encode($subject), str_replace("\r", '', $message), "MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8; format=flowed\nContent-transfer-encoding: 8Bit\n" . $header ); } }
出现这个错误是因为你没有安装MTA(Mail Transport Agent,邮件传送代理),常用的MTA有SendMail、Postfix、以及Qmail等,不过这些都必须在Linux下运行,你的GreanAMP应该是运行在Windows下的吧,呵呵,可以试一下Lammp
绝对不可能看看 [root@tse includes]# service sendmail status sendmail (pid 8788 8779) is running... 我的sendmail运行正常 再者你可以访问我的小松树webmail,都可以发送邮件哦 可以发到我的gmail信箱。 http://fingerling.gnway.net/webmail/src/login.php
谢谢啊,我想等网站放到虚拟主机上应该就没问题了吧
More information about formatting options
刚刚升级完毕,一切都乱糟糟的:)
哪个版本的Gree
哪个版本的GreenAMP?应该没有包括邮件发送程序吧?
我注册超级用户时,
我注册超级用户时,出现这个,但我数据库里已经增加,但我不知道密码阿???
Fatal error: Call to undefined function: mail() in /var/www/html/modules/user.module on line 399
function user_mail($mail, $su
function user_mail($mail, $subject, $message, $header) {
if (variable_get('smtp_library', '') && file_exists(variable_get('smtp_library', ''))) {
include_once variable_get('smtp_library', '');
return user_mail_wrapper($mail, $subject, $message, $header);
}
else {
return mail(
/*user.module on line 399就是这一行,我到前面查了,就是没有定义mail这个函数,这是为什么呢?我下载的 drupal-4.6.3 英文版,php的版本PHP 4.3.3 (cli) (built: Feb 3 2004 00:07:09)到底为什么呢?
*/
$mail,
mime_header_encode($subject),
str_replace("\r", '', $message),
"MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8; format=flowed\nContent-transfer-encoding: 8Bit\n" . $header
);
}
}
出现这个错误是因为
出现这个错误是因为你没有安装MTA(Mail Transport Agent,邮件传送代理),常用的MTA有SendMail、Postfix、以及Qmail等,不过这些都必须在Linux下运行,你的GreanAMP应该是运行在Windows下的吧,呵呵,可以试一下Lammp
绝对不可能看看 [root@
绝对不可能看看
[root@tse includes]# service sendmail status
sendmail (pid 8788 8779) is running...
我的sendmail运行正常
再者你可以访问我的小松树webmail,都可以发送邮件哦
可以发到我的gmail信箱。
http://fingerling.gnway.net/webmail/src/login.php
谢谢啊,我想等网站
谢谢啊,我想等网站放到虚拟主机上应该就没问题了吧
Post new comment