Hello !!!
i want change the text of the notification email
i found thai i have to change it here :
components\com_kunena\lib\kunena.posting.class.php
after line 936
Code:
foreach ( $emailToList as $emailTo ) {
if (! $emailTo->email || ! JMailHelper::isEmailAddress ( $emailTo->email ))
continue;
if ($emailTo->subscription) {
$msg1 = JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION1' );
$msg2 = JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION2' );
} else {
$msg1 = JText::_ ( 'COM_KUNENA_POST_EMAIL_MOD1' );
$msg2 = JText::_ ( 'COM_KUNENA_POST_EMAIL_MOD2' );
}
$msg = "$emailTo->name,\n\n";
$msg .= $msg1 . " " . $this->_config->board_title . " " . JText::_ ( 'COM_KUNENA_GEN_FORUM' ) . "\n\n";
$msg .= JText::_ ( 'COM_KUNENA_MESSAGE_SUBJECT' ) . ": " . $subject . "\n";
$msg .= JText::_ ( 'COM_KUNENA_GEN_FORUM' ) . ": " . $this->parent->catname . "\n";
$msg .= JText::_ ( 'COM_KUNENA_VIEW_POSTED' ) . ": " . $authorname . "\n\n";
$msg .= $msg2 . "\n";
$msg .= "URL: $LastPostUrl\n\n";
if ($this->_config->mailfull == 1) {
$msg .= JText::_ ( 'COM_KUNENA_GEN_MESSAGE' ) . ":\n-----\n";
$msg .= $message;
$msg .= "\n-----";
}
$msg .= "\n\n";
$msg .= JText::_ ( 'COM_KUNENA_POST_EMAIL_NOTIFICATION3' ) . "\n";
$msg .= "\n\n\n\n";
$msg = JMailHelper::cleanBody ( $msg );
But my Problem i want use a html codes here !! and when i add it it's not work !!
its show the html msg with plain text, not html text !!!
pls any one can tell me how i can change the ContentType from text/plain to text/html !!!!