View Issue Details

IDProjectCategoryView StatusLast Update
0007546mantisbtemailpublic2007-05-08 03:42
Reportercybot Assigned Tozakman  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.0a1 
Fixed in Version1.1.0a3 
Summary0007546: patch allowing real name in From: header
Description

this patch allows real names in From: headers for notification emails and uses 'Mantis Bugtracker' as default

Additional Information

this prevents emails to be recognized as spam

TagsNo tags attached.
Attached Files
mantis_allow_from_real_name_in_email.patch (812 bytes)   
Index: config_defaults_inc.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v
retrieving revision 1.317
diff -u -r1.317 config_defaults_inc.php
--- config_defaults_inc.php	29 Oct 2006 00:09:35 -0000	1.317
+++ config_defaults_inc.php	30 Oct 2006 11:36:36 -0000
@@ -189,9 +189,12 @@
 	$g_administrator_email	= 'administrator@example.com';
 	$g_webmaster_email		= 'webmaster@example.com';
 
-	# the 'From: ' field in emails
+	# the sender email, part of 'From: ' header in emails
 	$g_from_email			= 'noreply@example.com';
 
+	# the sender name, part of 'From: ' header in emails
+	$g_from_name			= 'Mantis Bugtracker';
+
 	# the return address for bounced mail
 	$g_return_path_email	= 'admin@example.com';
 

Activities

CWolff

CWolff

2007-01-23 12:29

reporter   ~0013953

for version 1.0.x of mantis

you have to modify email_api.php in mantisbt/core
at line 682
$mail->Sender = config_get( 'return_path_email' );
$mail->FromName = '';
TO
$mail->Sender = config_get( 'return_path_email' );
$mail->FromName = config_get( 'from_name');

and would be better to just add
$g_from_name = 'your header name here';

to config_inc.php since it override config_defaults_inc.php

cybot

cybot

2007-01-24 05:25

reporter   ~0013957

yes, of course, somehow it is missing in my patch file ...

but i used the config.default because of always using a real name - to not get marked as spam