ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
713
713
EMPFEHLEN
-
07.12.04 19:50 #1
- Registriert seit
- Dec 2004
- Beiträge
- 2
Hallo zusammen!
Ich habe folgendes Problem:
Ich versende E-Mails im HTML-Format; jetzt will ich aber, daß, wenn einer keine HTML-E-Mails lesen kann optional die E-Mail als Text-E-Mail bekommt.
Ich hoffe Ihr könnt mir weiterhelfen
Gruss
Stefan
-
Ich glaub das war so...
PHP-Code:<HTML>
<HEAD>
<TITLE> Unicode </TITLE>
</HEAD>
<BODY>
<?php
echo "<FORM ACTION=$PHP_SELF METHOD=post>";
?>
Mail-Adresse:<BR><INPUT TYPE="text" NAME="Adress" SIZE="40"><BR><BR>Link-Text:<BR><INPUT TYPE="text" NAME="text" SIZE="40"><BR><INPUT TYPE="submit" NAME="submit" VALUE="Unicode generieren"></FORM>
<?php
if ($submit)
{
function a($Ascii_Mail, $Unicode)
{
$Uni_Mail = "";
$Temp_Mail = strval($Ascii_Mail);
for ($i = 0; $i < strlen($Ascii_Mail); $i++)
{
$Ascii_Wert = ord($Temp_Mail[$i]);
if ($Unicode == "Yes") $Uni_Mail .= "&#$Ascii_Wert;";
else $Uni_Mail .= "&#$Ascii_Wert;";
}
return $Uni_Mail;
}
if ($text == $Adress) $text1 = a($Adress, "Yes");
else $text1 = $text;
if ($text == $Adress) $text2 = a($Adress, "No");
else $text2 = $text;
?>
Mailadresse in Unicode:<BR><FORM><TEXTAREA COLS="40" ROWS="6">
<?php
echo "<A HREF=mailto:".a($Adress, "Yes").">$text1</A>";
?>
</TEXTAREA></FORM><BR>Vorschau:<BR>
<?php
echo "<A HREF=mailto:".a($Adress, "No").">$text2</A>";
}
?>
</BODY>
</HTML>
Ähnliche Themen
-
email versand mit antwort
Von Marco-P im Forum Coders TalkAntworten: 9Letzter Beitrag: 10.07.08, 09:42 -
Email versand [VB.NET]
Von D34DL1NES im Forum .NET Windows FormsAntworten: 2Letzter Beitrag: 20.03.08, 22:53 -
Formulardaten, HTML, Email, versand? HILFE?
Von abert im Forum PHPAntworten: 3Letzter Beitrag: 21.03.05, 18:21 -
Automatischer Email-Versand
Von Alain im Forum PHPAntworten: 3Letzter Beitrag: 24.09.04, 13:50 -
Email-Versand per Outlook XP
Von Maximus im Forum Office-AnwendungenAntworten: 7Letzter Beitrag: 11.09.03, 15:22





Zitieren
Login






[PHP][Snippet] Array zu XML konvertieren