Index: trunk/phase3/includes/UserMailer.php |
— | — | @@ -127,10 +127,16 @@ |
128 | 128 | * @return String |
129 | 129 | */ |
130 | 130 | static function makeMsgId() { |
131 | | - global $wgServer; |
| 131 | + global $wgSMTP, $wgServer; |
132 | 132 | |
133 | | - $msgid = uniqid( "UserMailer", true ); /* true required for cygwin */ |
134 | | - return "<$msgid@$wgServer>"; |
| 133 | + $msgid = uniqid( wfWikiID() . ".", true ); /* true required for cygwin */ |
| 134 | + if ( is_array($wgSMTP) && $isset($wgSMTP['IDHost']) && $wgSMTP['IDHost'] ) { |
| 135 | + $domain = $wgSMTP['IDHost']; |
| 136 | + } else { |
| 137 | + $url = wfParseUrl($wgServer); |
| 138 | + $domain = $url['host']; |
| 139 | + } |
| 140 | + return "<$msgid@$domain>"; |
135 | 141 | } |
136 | 142 | |
137 | 143 | /** |