close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

how do I format the messages that arrive

Thread began 10/07/2009 7:48 am by mikeybabe | Last modified 10/08/2009 9:39 am by Ray Borduin | 2372 views | 8 replies |

mikeybabe

how do I format the messages that arrive

I have the mail working but when I receive anything sent from it, It arrives in one long unformatted line.


Is there a way I can format the text so that it reads clearly can I apply <br /> to any of the code files to achieve this?

Sign in to reply to this post

PaulBeta Tester

I'm sure you may have laready tried.

For me, I use DW to edit the file named 'WAUE_registration_x.php' created
in the folder WA_Universal_Email.

Paul.

Sign in to reply to this post

mikeybabe

and how does one go about formatting that ?

can I put <br /> in there somewhere or does this mess things up in this so simple to use program ???

Sign in to reply to this post

mikeybabe

hey crazy plumb is this what I edit

//Start Mail Body
$MailBody = $MailBody . "";
foreach( $_POST as $pkey => $pval ) {
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . (str_replace("_"," ",$pkey).": ".($pval));
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
}
$MailBody = $MailBody . "";
//End Mail Body

If so how ?

if not where ?

Sign in to reply to this post

Eric Mittman

It looks like Ray has responded to another thread where you had posted this:

showthread.php?p=21623#post21623

Sign in to reply to this post

mikeybabe

Still haven't found the answer

$MailBody = $MailBody . (str_replace("_"," ",$pkey).": ".str_replace("\n","<BR />",$pval));

This is what I was told to do I have corrected it so that I don't get errors from it but it still does not bring about the desired effect of formatted text ???

Any other ideas

Sign in to reply to this post

Ray BorduinWebAssist

you can replace all of your "\r\n" with "<br>" as well.

Sign in to reply to this post

mikeybabe

Hi Ray

Can you just send the script as I don't know what you mean or how it is supposed to look ?

Sign in to reply to this post

Ray BorduinWebAssist

foreach( $_POST as $pkey => $pval ) {
$MailBody = $MailBody . "<br>";
$MailBody = $MailBody . "<br>";
$MailBody = $MailBody . (str_replace("_"," ",$pkey).": ".str_replace("\n","<BR />",$pval));
$MailBody = $MailBody . "<br>";
$MailBody = $MailBody . "<br>";
}

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...