tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
1
ZUGRIFFE
713
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    toblerone01 toblerone01 ist offline Grünschnabel
    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
     

  2. #2
    geomaster geomaster ist offline Mitglied
    Registriert seit
    Oct 2004
    Beiträge
    22
    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 .= "&amp;#$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 "&lt;A HREF=mailto:".a($Adress"Yes")."&gt;$text1&lt;/A&gt;";
     
    ?>
     </TEXTAREA></FORM><BR>Vorschau:<BR>
     <?php
     
    echo "<A HREF=mailto:".a($Adress"No").">$text2</A>";
     }
     
    ?>
     </BODY>
     </HTML>
     

Ähnliche Themen

  1. email versand mit antwort
    Von Marco-P im Forum Coders Talk
    Antworten: 9
    Letzter Beitrag: 10.07.08, 09:42
  2. Email versand [VB.NET]
    Von D34DL1NES im Forum .NET Windows Forms
    Antworten: 2
    Letzter Beitrag: 20.03.08, 22:53
  3. Antworten: 3
    Letzter Beitrag: 21.03.05, 18:21
  4. Automatischer Email-Versand
    Von Alain im Forum PHP
    Antworten: 3
    Letzter Beitrag: 24.09.04, 13:50
  5. Email-Versand per Outlook XP
    Von Maximus im Forum Office-Anwendungen
    Antworten: 7
    Letzter Beitrag: 11.09.03, 15:22