Fixed: If the site name contains "." or "@" (and perhaps others), then notification emails (such as the email confirmation email) fail with the error "LOG_ERR: PEAR error: Validation failed for:

SITE_NAME <noreply@HOSTNAME> :"

Thanks jk3us

http://laconi.ca/trac/ticket/1356
This commit is contained in:
Craig Andrews 2009-07-21 14:03:08 -04:00
parent 22466530ef
commit 10a6751ddb

View File

@ -121,7 +121,7 @@ function mail_notify_from()
$domain = mail_domain(); $domain = mail_domain();
$notifyfrom = common_config('site', 'name') .' <noreply@'.$domain.'>'; $notifyfrom = '"'.common_config('site', 'name') .'" <noreply@'.$domain.'>';
} }
return $notifyfrom; return $notifyfrom;