Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   bei 990 Zeichen Zeilenumbruch - PHP (https://www.delphipraxis.net/91495-bei-990-zeichen-zeilenumbruch-php.html)

toms 5. Mai 2007 23:33


bei 990 Zeichen Zeilenumbruch - PHP
 
hallo

Ich erstelle mit PHP eine E-Mail Formatierung und verschicke es dann mit dem PHPMailer.

Im Prinzip sieht der Code so aus:

$message = "<html><head><TITLE>...</TITLE>";
$message .= "................";
usw...

Jetzt habe ich das Problem, dass es bei 990 Zeichen automatisch einen Zeilenumbruch macht
(Zu erkennen, wenn ich den Sourcecode des E-Mail dann anschaue)

Wo könnte die Ursache liegen?
Wie kann ich das umgeben?

Danke für Hinweise!

toms 5. Mai 2007 23:41

Re: bei 990 Zeichen Zeilenumbruch - PHP
 
Die Ursache habe ich im Quelltext gefunden, nur weiss ich nicht genau, wie ich
die Linebreaks verhindern kann...

Zitat:

# the server is ready to accept data!
# according to rfc 821 we should not send more than 1000
# including the CRLF
# characters on a single line so we will break the data up
# into lines by \r and/or \n then if needed we will break
# each of those into smaller lines to fit within the limit.
# in addition we will be looking for lines that start with
# a period '.' and append and additional period '.' to that
# line. NOTE: this does not count towards are limit.

# normalize the line breaks so we know the explode works
$msg_data = str_replace("\r\n","\n",$msg_data);
$msg_data = str_replace("\r","\n",$msg_data);
$lines = explode("\n",$msg_data);

# we need to find a good way to determine is headers are
# in the msg_data or if it is a straight msg body
# currently I'm assuming rfc 822 definitions of msg headers
# and if the first field of the first line (':' sperated)
# does not contain a space then it _should_ be a header
# and we can process all lines before a blank "" line as
# headers.

cruiser 6. Mai 2007 00:43

Re: bei 990 Zeichen Zeilenumbruch - PHP
 
Code:
 # according to rfc 821 we should not send more than 1000
# including the CRLF
Das Mailprotokoll verträgt nicht mehr, also solltest du dich auch daran halten. Man kann es vielleicht umgehen, aber ich würd es nicht machen.

toms 6. Mai 2007 03:25

Re: bei 990 Zeichen Zeilenumbruch - PHP
 
Ich glaube ich habe die Lösung gefunden: einfach zwischendurch ein paar \r\n reinhauen..


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:07 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz