'$error' => sprintf(t('Update %s failed. See error logs.'), DB_UPDATE_VERSION)
));
$subject=sprintf(t('Update Error at %s'), System::baseUrl());
- require_once('include/email.php');
- $subject = Email::emailHeaderEncode($subject,'UTF-8');
+
+ $subject = Email::emailHeaderEncode($subject,'UTF-8'); // use Friendica\Protocol\Email;
mail($a->config['admin_email'], $subject, $email_msg,
'From: ' . 'Administrator' . '@' . $_SERVER['SERVER_NAME']."\n"
.'Content-type: text/plain; charset=UTF-8'."\n"
use Friendica\Database\DBM;
use Friendica\Util\Emailer;
-require_once 'include/email.php';
require_once 'include/bbcode.php';
require_once 'include/html2bbcode.php';
require_once 'include/tags.php';
require_once 'include/files.php';
require_once 'include/text.php';
-require_once 'include/email.php';
require_once 'include/threads.php';
require_once 'include/plaintext.php';
require_once 'include/feed.php';
<?php
-
+/**
+ * @file mod/lostpass.php
+ */
use Friendica\App;
use Friendica\Core\System;
use Friendica\Database\DBM;
-require_once('include/email.php');
-require_once('include/enotify.php');
-require_once('include/text.php');
+require_once 'include/enotify.php';
+require_once 'include/text.php';
function lostpass_post(App $a) {
require_once 'include/datetime.php';
require_once 'include/items.php';
require_once 'include/bbcode.php';
-require_once 'include/email.php';
/*
* This file was at one time responsible for doing all deliveries, but this caused