Ignore:
Timestamp:
Aug 10, 2006, 12:10:12 AM (18 years ago)
Author:
rub
Message:

Resolved Issue ID 0000507:

o format of email
o max_execution_time equal to 0
o -f with only adress mail
o use of standard function get_webmaster_mail_address

2 news $conf parameters.

Merge branch-1_6 r1529:1530 into BSF

File:
1 edited

Legend:

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

    r1361 r1531  
    7979function format_email($name, $email)
    8080{
    81   $cvt7b_name = str_translate_to_ascii7bits($name);
     81  global $conf;
    8282
    83   if (strpos($email, '<') === false)
     83  if ($conf['enabled_format_email'])
    8484  {
    85     return $cvt7b_name.' <'.$email.'>';
     85    $cvt7b_name = str_translate_to_ascii7bits($name);
     86
     87    if (strpos($email, '<') === false)
     88    {
     89      return $cvt7b_name.' <'.$email.'>';
     90    }
     91    else
     92    {
     93      return $cvt7b_name.$email;
     94    }
    8695  }
    8796  else
    8897  {
    89     return $cvt7b_name.$email;
     98    return $email;
    9099  }
    91100}
     
    129138  if ($conf_mail['mail_options'])
    130139  {
    131     $options = '-f '.$from;
     140    $options = '-f '.$conf_mail['email_webmaster'];
    132141   
    133142    return mail($to, $cvt7b_subject, $content, $headers, $options);
Note: See TracChangeset for help on using the changeset viewer.