AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein bei 990 Zeichen Zeilenumbruch - PHP
Thema durchsuchen
Ansicht
Themen-Optionen

bei 990 Zeichen Zeilenumbruch - PHP

Ein Thema von toms · begonnen am 5. Mai 2007 · letzter Beitrag vom 6. Mai 2007
Antwort Antwort
Benutzerbild von toms
toms
(CodeLib-Manager)

Registriert seit: 10. Jun 2002
4.648 Beiträge
 
Delphi XE Professional
 
#1

bei 990 Zeichen Zeilenumbruch - PHP

  Alt 5. Mai 2007, 23:33
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!
Thomas
  Mit Zitat antworten Zitat
Benutzerbild von toms
toms
(CodeLib-Manager)

Registriert seit: 10. Jun 2002
4.648 Beiträge
 
Delphi XE Professional
 
#2

Re: bei 990 Zeichen Zeilenumbruch - PHP

  Alt 5. Mai 2007, 23:41
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.
Thomas
  Mit Zitat antworten Zitat
Benutzerbild von cruiser
cruiser

Registriert seit: 23. Dez 2003
Ort: Königsbrück/Sachsen
455 Beiträge
 
Delphi 7 Enterprise
 
#3

Re: bei 990 Zeichen Zeilenumbruch - PHP

  Alt 6. Mai 2007, 00:43
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.
  Mit Zitat antworten Zitat
Benutzerbild von toms
toms
(CodeLib-Manager)

Registriert seit: 10. Jun 2002
4.648 Beiträge
 
Delphi XE Professional
 
#4

Re: bei 990 Zeichen Zeilenumbruch - PHP

  Alt 6. Mai 2007, 03:25
Ich glaube ich habe die Lösung gefunden: einfach zwischendurch ein paar \r\n reinhauen..
Thomas
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:33 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