realbasic-nug
[Top] [All Lists]

Re: E-mail problems

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: E-mail problems
From: Steve Fyfe <sdf at cnicorp dot com>
Date: Thu, 31 May 2007 09:41:53 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <C2846E9C dot 26AD9%mty at fischerappelt dot de>
These lines "look" ok, but do they follow the spec? If each line does  
not end with CR-LF, then some mail servers may not consider that the  
end of the line. So all lines get run together and the total is now  
too long.

Here is a quote from the spec:
RFC 2821             Simple Mail Transfer Protocol            April 2001


2.3.7 Lines

    SMTP commands and, unless altered by a service extension, message
    data, are transmitted in "lines".  Lines consist of zero or more  
data
    characters terminated by the sequence ASCII character "CR" (hex  
value
    0D) followed immediately by ASCII character "LF" (hex value 0A).
    This termination sequence is denoted as <CRLF> in this document.
    Conforming implementations MUST NOT recognize or generate any other
    character or character sequence as a line terminator.  Limits MAY be
    imposed on line lengths by servers (see section 4.5.3).


On May 31, 2007, at 6:22 AM, Maximilian Tyrtania wrote:
>>> 2.Some mailservers would reject my mails saying:
>>> Remote host said: 500 5.5.0 Syntax error - line too long
>>>
>>> This 2nd problem seems to occur only if I sent emails in html (i  
>>> am using
>>> the StyledTextToHTML module written by Adam Ernst).
>>>
>> <snip>
>>> Has anyone else run into this? Any ideas for a workaround?
>>
>> Write a class to wrap long lines. I suppose the module just produces
>> one long line then?
>
> Well, if by "wrap" you mean "Replace line endings with <br>" then,  
> no, the
> resulting line is definitely not longer than 1024 characters. This  
> is whats
> confusing me, I don't know what is too long. The raw text of the  
> html part
> of the mail reads:
>
> --v3xo3h02f5ee
> Content-type: text/html;
> Content-transfer-encoding: 7bit
>
> <font face='Arial'>Lieber Herr Tyrtania,<br><br>Haustierbesitzer in
> Deutschland wissen, was gut f&uuml;r Hunde und Katzen ist und ihre
> Vierbeiner fit h&auml;lt. Erst wird geschmaust, dann geschmust ˆ und
> dazwischen steht viel Auslauf auf dem Programm. Damit sich Bello  
> und Mieze
> rundum wohl f&uuml;hlen, befolgen 71 Prozent der Halter
> Expertenratschl&auml;ge und verf&uuml;ttern empfohlenes Futter. 52  
> Prozent
> schmusen jeden Tag mit ihren Tieren und 62 Prozent gehen mit dem Hund
> t&auml;glich raus oder lassen die Katze vor die T&uuml;r. Zu diesen
> Ergebnissen kommt eine aktuelle, repr&auml;sentative GEWIS-Studie  
> im Auftrag
> von Hill's Pet Nutrition. Befragt wurden 1.083 deutsche Hunde- und
> Katzenhalter. <br><br>Weitere Informationen entnehmen Sie bitte der
> beiliegenden Pressemitteilung. <br><br>Ich stehe Ihnen jederzeit  
> bei Fragen
> sehr gerne zur Verf&uuml;gung.<br>Bei Abdruck freuen wir uns  
> &uuml;ber ein
> Belegexemplar.<br><br>Herzliche Gr&uuml;&szlig;e<br>Katja
> Jandrewski<br><br>Katja Jandrewski |  
> kaj at fischerappelt dot de<br>fischerAppelt
> Kommunikation<br>Waterloohain 5 | D-22769 Hamburg | Germany<br>Tel.
> 040.899699-851<br>www.fischerAppelt.de<br><br>Sitz der Gesellschaft:
> Hamburg<br>Standorte: Hamburg, Berlin, D&uuml;sseldorf, Frankfurt,
> M&uuml;nchen<br>Die Gesellschaft ist Teil des Everpublic
> Networks<br>Handelsregister: Amtsgericht Hamburg, HRB
> 49259<br>Gesch&auml;ftsf&uuml;hrer: Andreas Fischer-Appelt, Bernhard
> Fischer-Appelt<br><br>+++ Holmes Report k&uuml;rt fischerAppelt zur
> "Deutschen Agentur des Jahres 2006" +++<br></font>
>
> --v3xo3h02f5ee--
>
> Not sure what's wrong with this...
>
> Thanks,
>
>
>   Maximilian Tyrtania | Mty at fischerAppelt dot de
>   fischerAppelt Kommunikation GmbH
>   Friedichstr. 149 | D-10117 Berlin | Germany
>   Tel. ++49-30-726146-728 | Fax ++49-30-726146-710
>   www.fischerAppelt.de
> ---------------------------------------------------------------------- 
> -----
> Sitz der Gesellschaft: Hamburg
> Standorte: Hamburg, Berlin, Düsseldorf, Frankfurt, München
> Die Gesellschaft ist Teil des Everpublic Networks
> Handelsregister: Amtsgericht Hamburg, HRB 49259
> Geschäftsführer: Andreas Fischer-Appelt, Bernhard Fischer-Appelt
>
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>