Versende ich eine Email über:
mail("empfaenger@provider.de",$betreff,$nachricht,"From:test@test.de");
wird die Nachricht mit übergroßen Absätzen versandt. Also keine normalen Zeilensprünge sondern bei einem Absatz werden gleich 2 eingefügt usw.
Wodran liegt das ?
zuviele Absätze beim mail() Befehl
-
- Project Manager
- Posts: 11180
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: zuviele Absätze beim mail() Befehl
s/rn/n/
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 53
- Joined: 2003-10-29 12:16
Re: zuviele Absätze beim mail() Befehl
Und was soll mir das jetzt sagen ?
-
- Posts: 45
- Joined: 2003-12-22 11:09
Re: zuviele Absätze beim mail() Befehl
substitute return newline with newline
-
- Posts: 339
- Joined: 2002-05-27 10:52
Re: zuviele Absätze beim mail() Befehl
Das heißt, dass Du rn durch n ersetzen sollst...
-
- Posts: 53
- Joined: 2003-10-29 12:16
Re: zuviele Absätze beim mail() Befehl
Ich habe das Problem gelöst mit:
str_replace("n","",$nachricht);
str_replace("n","",$nachricht);
-
- Project Manager
- Posts: 11180
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: zuviele Absätze beim mail() Befehl
Warum nicht gleich richtig?
Code: Select all
str_replace("rn","n",$nachricht);
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.