PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit mail()


bueli
16.12.2002, 12:03:21
Ich habe folgendes Problem. In der Variable $text wird ein Emailtext gespeichert mit Formularinhalten und anschließend mit mail() verschickt. Die Email kommt aber unvollständig an, undzwar nur bis zu den Emailangaben, es sei denn ich kommentiere die Zeile mit $email aus, dann funktioniert es einwandfrei. Woran könnte das liegen?


Codeauszug

$text=

str_pad ($t->i18n("Name:"), $indentation) . $firstname . " " . $lastname . "n" .
str_pad ($t->i18n("Address:"), $indentation) . $address . "n" .
str_pad ($t->i18n("City:"), $indentation) . $city . "n" . str_pad ($t->i18n("Postcode:"), $indentation) . $postcode . "n" .
str_pad ($t->i18n("Country:"), $indentation) . $country . "n" .
str_pad ($t->i18n("Phone:"), $indentation) . $phone . " ". $t->i18n("Fax:") . " " . $fax . "n" .
str_pad ($t->i18n("Mobilephone:"), $indentation) . $mobilephone . "n" .
str_pad ($t->i18n("E-Mail:"), $indentation) . $email ."n" .
str_pad ($t->i18n("Passport:"), $indentation) . $passport . "n" .
str_pad ($t->i18n("Nationality:"), $indentation) . $nationality . "n" .
str_pad ($t->i18n("Profession:"), $indentation) . $profession . "n" .
str_pad ($t->i18n("Age:"), $indentation) . $age . "n" .
str_pad ($t->i18n("Gender:"), $indentation) . $gender . "n" .
str_pad ($t->i18n("Persons:"), $indentation) . $personnr . " " . $t->i18n("Adults:") . " " . $adults . " " . $t->i18n("Children:") . " " . $children . "n" .
str_pad ($t->i18n("Comment:"), $indentation) . $comment . "nn" ;

//hier wird eine Mail mit nem anderen Inhalt verschickt
mail($email, $irgendwas);

//hier wird der obrige text verschickt
mail(bla@bla.de, $text);

Danke und Gruß
bueli

andreas87
17.12.2002, 17:35:39
sieh dir mal mail() an. ist (so wie ich es kenne) nicht ganz korrekt.

mail($emfpänger,$betreff,$body,$header);
[http://www.selfphp.info/funktionsreferenz/mail_funktionen/mail.php]