PEAK XOOPS - EMLH and e-mails in englishin japanese

EMLH and e-mails

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 | Posted on 2008/6/15 15:30
coolman7  办霹始   Posts: 11
Hello,

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?

Thanks
Votes:11 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2008/6/22 17:46 | Last modified
GIJOE  黎扦烦菱   Posts: 4110
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]
Votes:14 Average:9.29
Previous post - Next post | Parent - Children.1 | Posted on 2008/11/12 23:22
coolman7  办霹始   Posts: 11
thanks
this works for message body but does not work for message header and message sender (sometimes title of website is used for FROM part of message).
Votes:12 Average:9.17
Previous post - Next post | Parent - Children.1 | Posted on 2008/11/19 12:44
GIJOE  黎扦烦菱   Posts: 4110
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)
        {

Votes:15 Average:7.33
Previous post - Next post | Parent - No child | Posted on 2008/12/23 17:29
coolman7  办霹始   Posts: 11
this works perfect.
Thank you very much
Votes:9 Average:8.89

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!