Ignore:
Timestamp:
Jun 18, 2006, 12:56:35 AM (18 years ago)
Author:
rub
Message:

Issue ID 0000407: accents are not allowed in mail headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_mail.inc.php

    r1321 r1361  
    7979function format_email($name, $email)
    8080{
     81  $cvt7b_name = str_translate_to_ascii7bits($name);
     82
    8183  if (strpos($email, '<') === false)
    8284  {
    83     return $name.' <'.$email.'>';
     85    return $cvt7b_name.' <'.$email.'>';
    8486  }
    8587  else
    8688  {
    87     return $name.$email;
     89    return $cvt7b_name.$email;
    8890  }
    8991}
     
    9597{
    9698  global $conf, $conf_mail;
     99
     100  $cvt7b_subject = str_translate_to_ascii7bits($subject);
    97101
    98102  if (!isset($conf_mail))
     
    127131    $options = '-f '.$from;
    128132   
    129     return mail($to, $subject, $content, $headers, $options);
     133    return mail($to, $cvt7b_subject, $content, $headers, $options);
    130134  }
    131135  else
    132136  {
    133     return mail($to, $subject, $content, $headers);
     137    return mail($to, $cvt7b_subject, $content, $headers);
    134138  }
    135139}
Note: See TracChangeset for help on using the changeset viewer.