UK Webmaster Talk - Online Marketing - SEO


 

HTML emails and line length

This is a discussion on HTML emails and line length within the Website Design Forum forums, part of the Website Design & Development category; I am trying to solve a problem with sending HTML messages using Sendmail at at my paid for hosting website. ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Website Design & Development > Website Design Forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 22-11-2005, 09:47   #1 (permalink)
Newbie
 
Join Date: Nov 2005
Posts: 4
iTrader: 0 / 0%
antares is an unknown quantity at this point
Exclamation HTML emails and line length

I am trying to solve a problem with sending HTML messages
using Sendmail at at my paid for hosting website.

I am not certain about the cause but your input would be
appreciated.

It appears that when I send a multipart/alternative message
using MIME
there is a problem with the message after it has been
transmitted and is subsequently displayed on MUA screens.

The plain text version displays correctly and also the first
part of the HTML message BUT when you get into the <BODY>
section of the HTML the decoded lines are so long they reach
the end of the display window (i.e. I think over 1024 bytes)
and the software is inserting an ! mark at the wrap position
which causes the message to display incorrectly in MUAs such
as Outlook Express and also web based MUAs. This is
especially true if the ! mark occurs in a link - the whole
link may not work

I am not sure if it is Sendmail, the mailserver, IE or my HTML plug-in (XStandard free d/l) or some
other gateway causing these problems.
I have seen long limes sent through other gateways but I
have never seen the ! mark inserted too.

I wonder if you can configure the server to stop
inserting the ! mark or wrap the lines at less than 1024
bytes
to stop the insertion of the ! mark.

Your thoughts on this would be much appreciated.
Antares
antares is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-11-2005, 11:09   #2 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,028
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

What does the raw html mail message show when viewed in a text only browser, that will tell you whether a mail gateway is pre-processing the message or whether the mail client is reformatting it.
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-11-2005, 13:29   #3 (permalink)
Newbie
 
Join Date: Nov 2005
Posts: 4
iTrader: 0 / 0%
antares is an unknown quantity at this point
Default

The XStandard plug-in is actually an xhtml input window with a text only viewer built in and this ! mark fault only shows up after the mail has been sent from the plug-in window via Sendmail and not before.
It first shows up in OutlookExpress and web-based email sites in the message source.
antares is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-11-2005, 13:51   #4 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,028
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

You need to view the message in a text only mail client, this will show you whether sendmail is adding something.

Do you get the same result if you send the mail to different servers ? This will tell you whether it's your mail gateway or the recieving end doing the changes.

Sendmail has a maximum line length setting and uses a "!\n" as a seperator for long lines, this I think defaults to 990 but can be configured in the sendmail.cf. Until you know which mail gateway is doing the you don't know whether the problem is yours or someone else's.

Don't tweak your sendmail.cf unless you really understand what you're doing otherwise you're in for big problems if you get it wrong.

I'd suggest the real solution is to send sensible length lines
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-11-2005, 14:13   #5 (permalink)
Newbie
 
Join Date: Nov 2005
Posts: 4
iTrader: 0 / 0%
antares is an unknown quantity at this point
Default

The plain text version of the email displays correctly displays correctly and the lines wrap at about 50-129 characters with no visible ! marks.

But the <BODY> section extends to full screen width with a ! mark inserted at the end of the line. These ! marks are visible in the raw markup displayed in OExpress.

I have NO control over the line length at all. The lines wrap to plug-in window of 75 characters before sending.
I have tried inserting <P>, CRLF sequences, \n etc but the lines wrap wherever they want.
antares is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-11-2005, 14:17   #6 (permalink)
Newbie
 
Join Date: Nov 2005
Posts: 4
iTrader: 0 / 0%
antares is an unknown quantity at this point
Default

I will see if I can try a different mail server.
antares is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-11-2005, 14:58   #7 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,028
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

A different mail server may not be the solution, if you're getting a problem with sendmail, then potentially you could have the same problem if your recipient is behind a similiarly configured sendmail server.

I'd work on getting the mail plugin you're using to break the lines at a more realistic length.
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24-11-2005, 17:38   #8 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,028
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

Did you resolve your problems ?

Perhaps you could write a short article sharing with others what you did and why ?
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
emails, html, length, line

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
I need help with html macca-tom Graphics Forum 11 21-05-2008 21:09
On-line web based games for toddlers monaghan Website Design Forum 9 28-09-2005 06:34
Warning: Invalid argument supplied for foreach() in /global.php on line 649 Lewis Php and MySQL 1 23-09-2005 21:59
CSS and HTML KF1 HTML, DHTML and CSS 11 19-07-2005 20:13
HTML does and donts Morphmaster Website Design Articles 0 26-06-2005 18:34


All times are GMT +1. The time now is 22:32.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41