Visualizzazione dei risultati da 1 a 5 su 5

Discussione: Formattazione email

  1. #1

    Formattazione email

    Codice PHP:
    $testo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
    <html xmlns=\"http://www.w3.org/1999/xhtml\">
    <head>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />
    <title></title>
    </head>
    <body>
    [b]Nome struttura:[/b] 
    $Nome


    [b]Tipo di struttura:[/b] 
    $TipoStruttura2


    [b]Regione:[/b] 
    $Regione2


    [b]Provincia:[/b] 
    $Provincia


    [b]Ente gestore - Legale rappresentante:[/b] 
    $Ente


    [b]P.iva/codice fiscale:[/b] 
    $Cf


    [b]Indirizzo della sede legale:[/b] 
    $IndirizzoLeg


    [b]Indirizzo della comunità:[/b] 
    $IndirizzoCom


    [b]Telefono:[/b] 
    $Tel


    [b]Email:[/b] 
    $Email


    [b]Area di intervento:[/b] 
    $Intervento


    [b]Sesso:[/b] 
    $Sesso


    [b]Portatori di handicap:[/b] 
    $Handicap2


    [b]Fascia di età:[/b] 
    $Eta1 - $Eta2


    [b]Nome e cognome del responsabile della comunità:[/b] 
    $Responsabile
    </body>
    </html>"
    ;
    $headers "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    $headers .= "From: Adesione sito.it <webmaster@sito.it>\r\n";
    mail("webmaster@sito.it""Adesione sito.it"$testo$headers); 
    Perchè alcuni client non formattano i tag?

  2. #2

  3. #3
    In che senso non formattano il testo? Quali client?

  4. #4
    Tipo Thunderbird 2.0, non traduce i tag html, li scrivi come sono.

  5. #5
    From:
    MIME-Version: 1.0
    Content-Type:text/html; charset="iso-8859-1"
    Content-Transfer-Encoding: 7bit

    Prova questo header
    Devi aggiungere al tuo il MIME e l'encoding

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.