Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di kreker
    Registrato dal
    May 2000
    Messaggi
    144

    Inviare email in formato html

    Sto modificando uno script gia fatto per joomla, in quanto mi invia corretamente le mail ma il codice HTML non viene compilato, quindi vedo il codice HTML nella mail:
    Il codice è il seguente, cos'ha che non va?

    Codice PHP:
      $headers 'MIME-Version: 1.0' "\r\n";

            
    $headers .= 'Content-type: text/html; charset=utf-8' "\r\n";

            
    $headers .= 'From: ' $this->_notify_email;

            
    $message '

    A user has posted a new comment to an content item at '
    .$mosConfig_live_site.':</p>';

            
    $message .= '

    [b]Name: [/b]'
    .$name.'
    '
    ;

          
    $message .= '[b]Title: [/b]'.$title.'
    '
    ;

            
    $message .= '[b]Text: [/b]'.$comment.'
    '
    ;

            
    $message .= '[b]Article: [/b][url="'.$articlelink.'"]'.$articlelink.'[/url]</p>';
          

            
    $message .= "

    Please do not respond to this message as it is automatically generated and is for information purposes only.</p>"
    ;

            @
    mail($this->_notify_email'New comment item'$message$headers); 

  2. #2
    Utente di HTML.it L'avatar di kreker
    Registrato dal
    May 2000
    Messaggi
    144
    trovato....basta togliere il \r della prima riga!

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.