cvs: php-wiki-web /dokuwiki/inc mail.php
| From: | Lukas Smith | Date: | Tue, 12 May 2009 15:03:20 +0000 |
| Subject: | cvs: php-wiki-web /dokuwiki/inc mail.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4750@lists.php.net to get a copy of this message | ||
lsmith Tue May 12 15:03:20 2009 UTC
Modified files:
/php-wiki-web/dokuwiki/inc mail.php
Log:
added hack to add -fnoreply@php.net to emails
http://cvs.php.net/viewvc.cgi/php-wiki-web/dokuwiki/inc/mail.php?r1=1.2&r2=1.3&diff_format=u
Index: php-wiki-web/dokuwiki/inc/mail.php
diff -u php-wiki-web/dokuwiki/inc/mail.php:1.2 php-wiki-web/dokuwiki/inc/mail.php:1.3
--- php-wiki-web/dokuwiki/inc/mail.php:1.2 Tue Jun 17 11:50:42 2008
+++ php-wiki-web/dokuwiki/inc/mail.php Tue May 12 15:03:20 2009
@@ -83,6 +83,10 @@
$body = mail_quotedprintable_encode($body);
+ // TODO: fixme hack .. this needs to be in a plugin or config file
+ if (substr($to, -7) === 'php.net') {
+ $params = '-fnoreply@php.net';
+ }
if($params == null){
return @mail($to,$subject,$body,$header);
}else{