Changeset 1531 for trunk/include/functions_mail.inc.php
- Timestamp:
- Aug 10, 2006, 12:10:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_mail.inc.php
r1361 r1531 79 79 function format_email($name, $email) 80 80 { 81 $cvt7b_name = str_translate_to_ascii7bits($name);81 global $conf; 82 82 83 if ( strpos($email, '<') === false)83 if ($conf['enabled_format_email']) 84 84 { 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 } 86 95 } 87 96 else 88 97 { 89 return $ cvt7b_name.$email;98 return $email; 90 99 } 91 100 } … … 129 138 if ($conf_mail['mail_options']) 130 139 { 131 $options = '-f '.$ from;140 $options = '-f '.$conf_mail['email_webmaster']; 132 141 133 142 return mail($to, $cvt7b_subject, $content, $headers, $options);
Note: See TracChangeset
for help on using the changeset viewer.