2008-05-29
cloc3
in my dokuwiki, mails are not sent from ssmtp.
I use a gentoo distribution, with www-apps/dokuwiki-20080505 and mail-mta/ssmtp-2.61-r2
error from /var/log/apache2/error_log :
sendmail: No recipients supplied - mail will not be sent
as a workaround, I've patch dokuwiki/inc/auth.php file in such a way:
s939 inc # pwd
/var/www/localhost/htdocs/dokuwiki/inc
s939 inc # diff -u auth.php auth.php.orig
--- auth.php 2008-05-29 22:12:17.318805948 +0200
+++ auth.php.orig 2008-05-29 21:36:21.324807550 +0200
@@ -532,9 +532,7 @@
return mail_send($userinfo['name'].' <'.$userinfo['mail'].'>',
$lang['regpwmail'],
$text,
- $conf['mailfrom'],
- '','','',
- $userinfo['mail']);
+ $conf['mailfrom']);
}
/**
@@ -770,9 +768,7 @@
if(mail_send($userinfo['name'].' <'.$userinfo['mail'].'>',
$lang['regpwmail'],
$text,
- $conf['mailfrom'],
- '','','',
- $userinfo['mail'])){
+ $conf['mailfrom'])){
msg($lang['resendpwdconfirm'],1);
}else{
msg($lang['regmailfail'],-1);