Changeset 1676 for trunk/include/functions_mail.inc.php
- Timestamp:
- Dec 19, 2006, 11:05:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_mail.inc.php
r1645 r1676 122 122 function pwg_mail($to, $from = '', $subject = 'PhpWebGallery', $infos = '', $format_infos = 'text/plain', $email_format = null) 123 123 { 124 global $conf, $conf_mail, $lang_info, $user ;124 global $conf, $conf_mail, $lang_info, $user, $page; 125 125 126 126 $cvt7b_subject = str_translate_to_ascii7bits($subject); … … 140 140 // Todo find function to convert html text to plain text 141 141 return false; 142 } 143 144 // Compute root_path in order have complete path 145 if ($email_format == 'text/html') 146 { 147 set_make_full_url(); 142 148 } 143 149 … … 180 186 181 187 'CONTENT_ENCODING' => $lang_info['charset'], 182 'LANG'=>$lang_info['code'], 183 'DIR'=>$lang_info['direction'] 184 188 'LANG' => $lang_info['code'], 189 'DIR' => $lang_info['direction'] 185 190 )); 186 191 … … 221 226 'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '', 222 227 223 ' L_TITLE_MAIL' => urlencode(l10n('title_send_mail')),228 'TITLE_MAIL' => urlencode(l10n('title_send_mail')), 224 229 'MAIL' => get_webmaster_mail_address() 225 230 )); … … 235 240 236 241 $content.= $conf_mail[$email_format][$lang_info['charset']]['footer']; 242 243 // Undo Compute root_path in order have complete path 244 if ($email_format == 'text/html') 245 { 246 unset_make_full_url(); 247 } 237 248 238 249 if ($conf_mail['mail_options'])
Note: See TracChangeset
for help on using the changeset viewer.