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);