Ticket #573 (reopened bug)

Opened 5 months ago

Last modified 4 months ago

E-mail received from form submissions- NOT user friendly

Reported by: anonymous Assigned to: ryan
Priority: normal Milestone: 2.8.x
Component: framework Version: 2.7.0
Keywords: wb form mailer submission Cc:

Description

The e-mail the system sends out after someone submits a form on my site is very unreadable. It looks like this:

Name: Mr. Smith Email: mrsmith@example.com Comments: hello world

It should look like this (with each one on a separate line):

Name: Mr. Smith
E-mail: blahblahblah@example.com
Comments: hello world!

Change History

03/28/08 13:35:59 changed by Ruebenwurzel

  • priority changed from high to normal.
  • resolution set to fixed.
  • status changed from new to closed.
  • component changed from general to modules.

Fixed in WB 2.7

04/17/08 18:26:50 changed by Ruebenwurzel

  • status changed from closed to reopened.
  • resolution deleted.
  • component changed from modules to framework.

framework/class.wb.php should be changed from:

$message = preg_replace('/[\r\n]/', '<br \>', $message); ...
$myMail->Body = $message;
$myMail->AltBody = strip_tags($message);

to:

$htmlmessage = preg_replace('/\r\n?|\n/', '<br>', $message); ...
$myMail->Body = $htmlmessage;
$myMail->AltBody = $message;

to get working line breaks in HTML and TEXT Mail on all Systems

Thanks for the hint from Christoph

04/22/08 18:26:23 changed by doc

  • version changed from 2.6.7 to 2.7.0.
  • milestone changed from 2.7.x to 2.8.x.