hi coolman7.
Quote:
I want to know how to render e-mails with EMLH. For example when I send emails with Liaise or other modules or notification systems, mails are like that
Subject: [tr]aaaaa[/tr][en]bbbbb[/en]
Message body: [tr]AAAAAA[/tr][en]BBBBB[/en]
But emails should be like that:
Subject: bbbbb
Message body: BBBBB
How can I do this with EMLH?
Perhaps, you have to hack Liaise or core.
eg)
htdocs/class/mail/phpmailer/class.phpmailer.php
$this->error_count = 0; // reset errors
$this->SetMessageType();
$header .= $this->CreateHeader();
$body = $this->CreateBody();
if( function_exists( 'easiestml' ) ) {
$header = easiestml( $header ) ;
$body = easiestml( $body ) ;
}
# This code is not enough.
# refer
[1.2.1]
hi coolman7.
OK. Try this code.
htdocs/class/mail/phpmailer/class.phpmailer.php
line 342
function Send() {
$this->From = easiestml( $this->From ) ;
$this->FromName = easiestml( $this->FromName ) ;
$this->Sender = easiestml( $this->Sender ) ;
$this->Subject = easiestml( $this->Subject ) ;
$this->Body = easiestml( $this->Body ) ;
$header = "";
$body = "";
$result = true;
if((count($this->to) + count($this->cc) + count($this->bcc)) < 1)
{
this works perfect.
Thank you very much