[Tep-j-general] Re: email.phpのエラー

アーカイブの一覧に戻る

Sachiko M sachi****@w2stu*****
2003年 12月 11日 (木) 07:12:24 JST


$BC]Fb$5$s!!$3$s$K$A$o!#$*JV;v$"$j$,$H$&$4$6$$$^$9!#(BSachiko$B$G$9!#(B

> >     if(constant('CHARSET') = "EUC-JP")
>
>       if(constant('CHARSET') == "EUC-JP")
>
>   $B!V(B==$B!W$8$c$J$$$G$7$g$&$+!#(B

$B$3$l$G!"$H$j$"$($:!"$3$N%i%$%s$N%(%i!<$O$J$/$J$C$?$N$G$9$,!":#EY$O0c$&=j$+$i(B
$B$N%(%i!<(B
$B$,=P$^$7$?!#%(%i!<$NFbMF$O$3$l$G$9!#(B

Fatal error: Call to undefined function: mb_encode_mimeheader() in
/home/w2studio/public_html/catalog2/admin/includes/classes/email.php on line
456

$B#4#5#69TL\$H$O!"(B

446$B9TL\!!(B  function send($to_name, $to_addr, $from_name, $from_addr,
$subject = '', $headers = ''){
447$B9TL\(B    $B!!(B// $from_name $B!"%c(B "" $B!"%L(B $from_addr $B!"%c(B "Name <someo****@abc*****>" $B%-(B
$B%A%7!<!"%[%;!&n&%R(B
448$B9TL\(B  $B!!(B  // $from_addr $B!"„L%c%$„&%-!"%K%9fAp&%O(B E-mail $B!&!V!&%N!&!&%1!"%R%O%`!"%#!"!&(B    //
tamura 2002/05/08
449$B9TL\!!(B    if (ereg("[ ]*(.+[^ ]+)[ ]*<([^@]+@[^@]+)>[ ]*", $from_addr,
$a_regs)) {
450$B9TL\!!(B      $from_name = $a_regs[1];
451$B9TL\!!(B      $from_addr = $a_regs[2];
452$B9TL\!!(B }

454$B9TL\!!(B    if ($subject != '')
455$B9TL\!!(B      $subject = mb_encode_mimeheader(mb_convert_kana($subject,
"KV"), 'ISO-2022-JP');
456$B9TL\!!(B    $to    = ($to_name != '')
457$B9TL\!!(B        ? ('"' . mb_encode_mimeheader(mb_convert_kana($to_name,
"KV"), 'ISO-2022-JP') . '" <' . $B!!(B$to_addr . '>')
458$B9TL\!!(B        : $to_addr;
459$B9TL\!!(B    $from  = ($from_name != '')
460$B9TL\!!(B        ? ('"' . mb_encode_mimeheader(mb_convert_kana($from_name,
"KV"), 'ISO-2022-JP')  . '" <' . $from_addr. '>')
461$B9TL\!!(B        : $from_addr;

463$B9TL\(B    if(is_string($headers))
      $headers = explode($this->lf, trim($headers));

    for($i=0; $i<count($headers); $i++){
      if(is_array($headers[$i]))
        for($j=0; $j<count($headers[$i]); $j++)
          if($headers[$i][$j] != '')
            $xtra_headers[] = $headers[$i][$j];

      if($headers[$i] != '')
        $xtra_headers[] = $headers[$i];
    }
    if(!isset($xtra_headers))
      $xtra_headers = array();

    if (EMAIL_TRANSPORT=="smtp") {
      return mail(
        $to_addr,
        $subject,
        $this->output,
         'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf .
implode($this->lf, $this->headers) . $this->lf . implode($this->lf,
$xtra_headers));
    } else {
      return mail($to, $subject, $this->output, 'From:
'.$from.$this->lf.implode($this->lf,
$this->headers).$this->lf.implode($this->lf, $xtra_headers));
    }
  }

$B$?$S$?$S$9$$$^$;$s$G$9!#!!$I$&$7$?$i$$$$$+J,$+$kJ}$$$i$C$7$c$$$^$7$?$i(B
$B$h$m$7$/$*4j$$$7$^$9!#(B

-,',-,',-,',-,',-,',-,',-,',-,',-,',-,',-,',-,',-,',-,',-
Sachiko Morino
Sachi****@Heart*****
Http://www.HeartinJewelry.com
-,',-,',-,',-,',-,',-,',-,',-,',-,',-,',-,',-,',-,',-,',-





Tep-j-general メーリングリストの案内
アーカイブの一覧に戻る