Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

It just doesnt work

Thread began 5/05/2012 7:52 am by J7HNW | Last modified 5/08/2012 2:23 pm by Jason Byrnes | 743 views | 9 replies |

J7HNW

It just doesnt work

Hi

I have added HTML editor to my PHP page - and all appears properly. The form sends the text as entered - but no matter what colour or font family you change in the editor - the e mail comes through with Times New Roman black.

ALl I have done is enter some text - then for example highlight it and change it to red. When the mail comes through the text is not red !

What am I missing please

John

Sign in to reply to this post

Christopher WestCommunity Expert

So you could say its coming through as plain text format? Have you tried testing with different font sizes and bold/italic etc? Also have you checked the stored content in your database - does it show formatting in the database? Lastly can you test by displaying directly the content in the browser rather then an email?

Chris

Sign in to reply to this post

J7HNW

HTML Editor

Hi Chris

I have tried changing font types , sizes and colours. Nothing makes a difference to the text. As for a database - I am using this application as follows

The site has a small database of around 20 people and my client just wants to send e mails to them on a regular basis. So I built a simple form with a Subject Line in it - and then added HTML editor to the form . He can therefore write messages in HTML Editor and send to the contact list using Universal E Mail on the form.

In Universal E Mail when I have made the form which is sent I just pulled out the Editor field from the form.

When the mails come through they are not formatted. Am I using this application the wrong way to do what I am doing ?

John

Sign in to reply to this post

Jason ByrnesWebAssist

using styles in emails is not the same as using styles in a web page.

before you send the message, switch HTML Editor to source mode, send the source code for the message and I will be able to tell you what is wrong.

There are a few things to keep in mind:

-If you are using CSS Styling, the CSS Must be applied inline:
<span style="color:#00FF00;"

- Not all style attributes are supported by all email clients:
css/

Sign in to reply to this post

J7HNW

Source code

Hi Jason

See below - I have copied in some of your e mail and made some text red and some italic

<p>
Test text below</p>
<p class="MsoPlainText" style="margin: 0cm 0cm 0pt;">
<span style="color: rgb(255, 0, 0);"><font face="Tahoma">Here is the message that has just been posted:</font></span></p>
<p class="MsoPlainText" style="margin: 0cm 0cm 0pt;">
<font color="#000000" face="Tahoma">***************</font></p>
<p class="MsoPlainText" style="margin: 0cm 0cm 0pt;">
<em><font color="#000000" face="Tahoma">using styles in emails is not the same as using styles in a web page.</font></em></p>
<p class="MsoPlainText" style="margin: 0cm 0cm 0pt;">
<o:p><font color="#000000" face="Tahoma">&nbsp;</font></o:p></p>
<p class="MsoPlainText" style="margin: 0cm 0cm 0pt;">
<font color="#000000" face="Tahoma">before you send the message, switch HTML Editor to source mode, send the source code for the message and I will be able to tell you what is wrong.</font></p>

Should it work OK when embedded in UEM4 ? attached is a grab of the message which comes through. As you can see the subject line and initial text are from the page CSS for std font . The only section not formatted is the HTML Editor font


Thanks

John

Attached Files
E Mail Message from Southend Airport Taxis.pdf
Sign in to reply to this post

Jason ByrnesWebAssist

the message text you posted has a lot of MS Word proprietary code in it, it also uses the font tag which is not supported by many email clients.

this would be more correct coding for the message:

<p>
Test text below
</p>
<p>
<span style="color: #ff0000;font-family: Tahoma, serifSansSerifMonospace;">Here is the message that has just been posted:</span>
</p>
<p>
<span style="color: #000000;font-family: Tahoma, serifSansSerifMonospace;">***************</span>
</p>
<p>
<span style="color: #000000;font-family: Tahoma, serifSansSerifMonospace;"><em>using styles in emails is not the same as using styles in a web page.</em></span>
</p>
<p>
<span style="color: #000000;font-family: Tahoma, serifSansSerifMonospace;">&nbsp;</span>
</p>
<p>
<span style="color: #000000;font-family: Tahoma, serifSansSerifMonospace;">before you send the message, switch HTML Editor to source mode, send the source code for the message and I will be able to tell you what is wrong.
</span></p>
Sign in to reply to this post

J7HNW

But...

Thanks Jason. However I just copied in some of your reply and then edited it in the example which you refer to.

Is it not possible for my client to type into HTML editor in the admin form I have made and then send a properly formatted e mail from the code they enter in HTML editor ?

Sign in to reply to this post

Jason ByrnesWebAssist

the formatting that HTML Editor adds to the code is not going to work in an email.

HTML Editor does not add email friendly formatting, you need to add the styling manually as an inline css style for it to be Email friendly.

Sign in to reply to this post

J7HNW

OK please can you just tell me this ,

Hi Jason

OK understood - you cannot format the HTML editor text in an e mail. However - when I go into UEM4 and edit the layout - I have applied formatting as follows

<p class="subjectline"><strong><u>E Mail Message</u></strong> from Southend Airport Taxis</p>
<p class="Text"><?php echo ((isset($_POST["Subject"]))?$_POST["Subject"]:"")?></p>
<p class="Text"><?php echo ((isset($_POST["editorField"]))?$_POST["editorField"]:"")?></p>

The class of "Text" is set to be Arial 12px and is embedded as a class In the Form as follows.

.Text {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}

The strange thing is the SUBJECT line is coming out properly formatted as you can see in the example I added as an attachment earlier - but the main body field of the form ( editorfield ) which is also formatted as "Text" class doesnt render this way
How come it is not coming through formatted correctly ?

John

Sign in to reply to this post

Jason ByrnesWebAssist

to be 100% honest, I don't have an answer for you.

email clients do not have the ability to recognize class based styled like this, they will only properly render CSS that is applied inline.

using a style class like this should not work at all for styling the email. so there most be other code in the email that is effecting the subject line.

Sign in to reply to this post
loading

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...