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. ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| | #1 (permalink) |
| Newbie | 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 |
| | |
| | #2 (permalink) |
| Super Moderator | 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.
__________________ Alex Monaghan - Monaghan Consultants Ltd Web hosting, ADSL, IT & Database consultancy Custom Web hosting on UK or USA servers using Linux (cPanel) or Windows (DotNetPanel) Mobile Phone Ringtones, Logos, Java Games & more |
| | |
| | #3 (permalink) |
| Newbie | 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. |
| | |
| | #4 (permalink) |
| Super Moderator | 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
__________________ Alex Monaghan - Monaghan Consultants Ltd Web hosting, ADSL, IT & Database consultancy Custom Web hosting on UK or USA servers using Linux (cPanel) or Windows (DotNetPanel) Mobile Phone Ringtones, Logos, Java Games & more |
| | |
| | #5 (permalink) |
| Newbie | 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. |
| | |
| | #7 (permalink) |
| Super Moderator | 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.
__________________ Alex Monaghan - Monaghan Consultants Ltd Web hosting, ADSL, IT & Database consultancy Custom Web hosting on UK or USA servers using Linux (cPanel) or Windows (DotNetPanel) Mobile Phone Ringtones, Logos, Java Games & more |
| | |
| | #8 (permalink) |
| Super Moderator | Did you resolve your problems ? Perhaps you could write a short article sharing with others what you did and why ?
__________________ Alex Monaghan - Monaghan Consultants Ltd Web hosting, ADSL, IT & Database consultancy Custom Web hosting on UK or USA servers using Linux (cPanel) or Windows (DotNetPanel) Mobile Phone Ringtones, Logos, Java Games & more |
| | |
| Tags |
| emails, html, length, line |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |