Joomla.it Forum

Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : renzo973 15 Feb 2012, 10:38:18

: [Risolto] - Problema con Huru Helpdesk
: renzo973 15 Feb 2012, 10:38:18
buongiorno a tutti, ho bisogno di un aiuto per il componente in oggetto. Funziona correttamente, l'unico problema è quando invia la mail all'amministratore  per notificare l'inserimento di un ticket. Il testo non è formattato correttamente, trasformando le lettere accentate con:
qualcuno ha riscontrato lo stesso problema? sapreste darmi una mano per risolvere questo bachetto?
Grazie a tutti
: Re:Problema con Huru Helpdesk
: renzo973 23 Feb 2012, 10:13:31
Ho risolto il problema, trovando la soluzione nel Forum di HURU Helpdesk. Per chi ne fosse interessato, riporto sotto la soluzione:
[/font][/size][/font][/color]

Open head.php and go to line 480 where you find:

Code:



    [/color]//setup the mailer & create message
    $mail =& JFactory::getMailer();
     
    $config =& JFactory::getConfig();
    $mail->addRecipient($to);
    $mail->setSender($sender);
    $mail->setSubject($subject);
    $mail->setBody($body;


[/color][/font][/size][/font][/color]


and substitute it by:

Code:



    [/color]//setup the mailer & create message
    $mail =& JFactory::getMailer();
     
    $config =& JFactory::getConfig();
    $mail->addRecipient($to);
    $mail->setSender($sender);
    //added this so that mail gets sent out ok for other languages
    $subject = html_entity_decode($subject, ENT_QUOTES, 'UTF-8');
    $mail->setSubject($subject);
    //added this so that mail gets sent out ok for other languages
    $body = html_entity_decode($body, ENT_QUOTES, 'UTF-8');
    $mail->setBody($body;


 8) [/font][/size][/font][/color]
: Re:Problema con Huru Helpdesk
: Gioacchino Cipriano 20 Jul 2012, 17:12:16

Ho risolto il problema, trovando la soluzione nel Forum di HURU Helpdesk. Per chi ne fosse interessato, riporto sotto la soluzione:


Open head.php and go to line 480 where you find:
:


//setup the mailer & create message


    $mail =& JFactory::getMailer();
     
    $config =& JFactory::getConfig();
    $mail->addRecipient($to);
    $mail->setSender($sender);
    $mail->setSubject($subject);
    $mail->setBody($body;




and substitute it by:




   
:
//setup the mailer & create message
    $mail =& JFactory::getMailer();
     
    $config =& JFactory::getConfig();
    $mail->addRecipient($to);
    $mail->setSender($sender);
    //added this so that mail gets sent out ok for other languages
    $subject = html_entity_decode($subject, ENT_QUOTES, 'UTF-8');
    $mail->setSubject($subject);
    //added this so that mail gets sent out ok for other languages
    $body = html_entity_decode($body, ENT_QUOTES, 'UTF-8');
    $mail->setBody($body;
In realtà mancherebbe una parentesi:
:
$mail->setBody($body;
va aggiunta alla fine una paretesi:
:
$mail->setBody($body);
: Re:[Risolto] - Problema con Huru Helpdesk
: renzo973 03 Aug 2012, 10:16:42
giusto Gioacchino, m'era scappata  ;D