示例#1
0
                         if ($acc['type'] == 'wiki-append' || $acc['type'] == 'wiki' && $method == "APPEND") {
                             $body = $info['data'] . $body;
                         } else {
                             $body = $body . $info['data'];
                         }
                         $tikilib->update_page($page, $body, "Updated from " . $acc["account"], $aux["sender"]["user"], '0.0.0.0', '');
                         $content .= "Page: {$page} has been updated";
                     }
                 }
                 mailin_check_attachments($output, $content, $page, $aux["sender"]["user"]);
             } else {
                 $mail = new TikiMail();
                 $mail->setFrom($acc["account"]);
                 $c = $tikilib->get_preference("default_mail_charset", "utf8");
                 $mail->setHeadCharset($c);
                 $mail->setTextCharset($c);
                 $l = $tikilib->get_preference("language", "en");
                 $mail_data = $smarty->fetchLang($l, "mail/mailin_help_subject.tpl");
                 $mail->setSubject($mail_data);
                 $mail->setSMTPParams($acc["smtp"], $acc["smtpPort"], '', $acc["useAuth"], $acc["username"], $acc["pass"]);
                 $smarty->assign('subject', $output['header']['subject']);
                 $mail_data = $smarty->fetchLang($l, "mail/mailin_help.tpl");
                 $mail->setText($mail_data);
                 $res = $mail->send(array($email_from), 'mail');
             }
         }
     }
     //end if($cantUseMailIn)
     // Remove the email from the pop3 server
     $pop3->deleteMsg($i);
 }