View Issue Details

IDProjectCategoryView StatusLast Update
0010200mantisbtemailpublic2009-04-20 09:49
Reporterjoserobjr Assigned Tosiebrand  
PrioritynormalSeveritytextReproducibilityalways
Status closedResolutionfixed 
PlatformAllOSAllOS VersionAll
Product Version1.1.6 
Fixed in Version1.1.7 
Summary0010200: \n not replaced in registration e-mail
Description

The e-mail sent when registered is this:

Date: the date
To: the e-mail
From: Mantis Bug Tracker noreply@mantisbt.org
Subject: [MantisBT] Account registration
Message-ID: code@www.mantisbt.org
X-Priority: 3
X-Mailer: PHPMailer (phpmailer.codeworxtech.com) [version 2.3]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"

Thank you for registering. You have an account with username "joserobjr". In
order to complete your registration, visit the following URL (make sure it is
entered as the single line) and set your own access password:

http://www.mantisbt.org/bugs/verify.php?id=13231&confirm_hash=bf51de4e19df435793e0da1b7951a589

If you did not request any registration, ignore this message and nothing will
happen.\n\nDO NOT REPLY TO THIS MESSAGE

Additional Information

The \n\n are not replaced with new line.

TagsNo tags attached.

Relationships

related to 0010253 closeddregad Duplicate newline in mantis mails (1.2.0a3) 

Activities

kristof

kristof

2009-03-28 08:11

reporter   ~0021246

Last edited: 2009-03-28 08:12

Same here in version 1.2.0a3. As well as in the mail send to reset the password.

I found a workaround: in lang/strings_english.txt, replace the single quotes around the messages with \n with double quotes. Now PHP parses the \n as a line feed.

not sure it's meant to be done like this, since I'm not familiar enough with how Mantis handles those messages.

filipporiccio

filipporiccio

2009-03-28 11:28

reporter   ~0021247

This problem appears in some localization files, while in others it seems to be corrected with constructs like:

$s_reset_request_msg = 'Someone (presumably you) requested a password change through email verification. If this was not you, ignore this message and nothing will happen.' . "\n\n" . 'If you requested this verification, visit the following URL to change your password:';

siebrand

siebrand

2009-03-28 13:26

developer   ~0021248

Fixed 1.1.7 (master-1.1.x)