When using the "plain" ACL, and setting up $conf['mailfrom'] per the docs,
http://www.dokuwiki.org/config:mailfrom
Users get errors, (msg in mail_encode_address)
E-Mail address <@MAIL@> is not valid
since the $conf['mailfrom'] string is passed directly to the mailer.
I fixed it with this, but it's a little silly (you send yourself an email, since there isn't a valid email address anywhere?)
diff --git a/inc/auth.php b/inc/auth.php
index a2844a7..61b1802 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -661,10 +661,15 @@ function auth_sendPassword($user,$password){
$text = str_replace('@PASSWORD@',$password,$text);
$text = str_replace('@TITLE@',$conf['title'],$text);
+ $from = $conf['mailfrom'];
+ $from = str_replace('@USER@',$user,$from);
+ $from = str_replace('@NAME@',$userinfo['name'],$from);
+ $from = str_replace('@MAIL@',$userinfo['mail'],$from);
+
return mail_send($userinfo['name'].' <'.$userinfo['mail'].'>',
$lang['regpwmail'],
$text,
- $conf['mailfrom']);
+ $from);
}
I think there is a similar issue in ./inc/subscription.php:subscription_send()
-Robin