Ignore:
Timestamp:
10/09/08 12:48:28 (4 years ago)
Author:
hverton
Message:

fixed not loading PHPmailer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/mail2forum/php-files/modules/mail2forum/m2f_smtp.php

    r1736 r1838  
    2424} 
    2525require_once $webroot."includes/core_functions.php"; 
     26require_once PATH_INCLUDES."forum_functions_include.php"; 
    2627 
    2728// create a siteurl link from the m2f host settings 
     
    7071    if ($settings['m2f_smtp_debug']) $mail->SMTPDebug = 2; 
    7172 
    72     if (file_exists(PATH_INCLUDES."languages/phpmailer.lang-".$settings['phpmailer_locale'].".php")) { 
    73         $mail->SetLanguage($settings['phpmailer_locale'], PATH_INCLUDES."language/"); 
     73    if (file_exists(PATH_INCLUDES."languages/phpmailer.lang-".$settings['PHPmailer_locale'].".php")) { 
     74        $mail->SetLanguage($settings['PHPmailer_locale'], PATH_INCLUDES."language/"); 
    7475    } else { 
    7576        $mail->SetLanguage("en", PATH_INCLUDES."language/"); 
     
    267268 
    268269// initialize PHP-Mailer 
    269 require_once PATH_INCLUDES."phpmailer_include.php"; 
     270require_once PATH_INCLUDES."class.phpmailer.php"; 
    270271$mail = new PHPMailer(); 
    271272mailer_init(); 
    272273 
    273274// get the last polled time from the configuration 
    274 if (empty($settings['m2f_last_polled']) { 
     275if (empty($settings['m2f_last_polled'])) { 
    275276    // the first time we start. Forget all old posts for now 
    276277    $lastpoll = time(); 
     
    374375                    $HTMLbody = $postrecord['post_message']; 
    375376//                  if ($postrecord['post_showsig']) { $HTMLbody = $HTMLbody."\n\n<hr>".$postrecord['user_sig']; } 
    376                     if ($postrecord['post_smileys']) { $HTMLbody = parsesmileys($HTMLbody); } 
    377                     $HTMLbody = parseubb($HTMLbody); 
    378                     $HTMLbody = nl2br($HTMLbody); 
     377                    $HTMLbody = parsemessage(array(), $HTMLbody, $postrecord['post_smileys'], false); 
    379378 
    380379                    $TEXTbody = $edit_post?($locale['m2f814']."\r\n\r\n"):""; 
Note: See TracChangeset for help on using the changeset viewer.