Changeset 1361 for trunk/include/functions_mail.inc.php
- Timestamp:
- Jun 18, 2006, 12:56:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_mail.inc.php
r1321 r1361 79 79 function format_email($name, $email) 80 80 { 81 $cvt7b_name = str_translate_to_ascii7bits($name); 82 81 83 if (strpos($email, '<') === false) 82 84 { 83 return $ name.' <'.$email.'>';85 return $cvt7b_name.' <'.$email.'>'; 84 86 } 85 87 else 86 88 { 87 return $ name.$email;89 return $cvt7b_name.$email; 88 90 } 89 91 } … … 95 97 { 96 98 global $conf, $conf_mail; 99 100 $cvt7b_subject = str_translate_to_ascii7bits($subject); 97 101 98 102 if (!isset($conf_mail)) … … 127 131 $options = '-f '.$from; 128 132 129 return mail($to, $ subject, $content, $headers, $options);133 return mail($to, $cvt7b_subject, $content, $headers, $options); 130 134 } 131 135 else 132 136 { 133 return mail($to, $ subject, $content, $headers);137 return mail($to, $cvt7b_subject, $content, $headers); 134 138 } 135 139 }
Note: See TracChangeset
for help on using the changeset viewer.