set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
get_include_path());
- require_once 'classes/ttrssmailer.php';
require_once "autoload.php";
require_once "functions.php";
require_once "sessions.php";
<head>
<title>Create new account</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<?php echo stylesheet_tag("css/utility.css") ?>
<?php echo stylesheet_tag("css/default.css") ?>
<?php echo javascript_tag("js/functions.js") ?>
<?php echo javascript_tag("lib/prototype.js") ?>
</script>
-<body>
+<body class="claro ttrss_utility">
<div class="floatingLogo"><img src="images/logo_small.png"></div>
"\n".
"If that wasn't you, just ignore this message. Thanks.";
- $mail = new ttrssMailer();
- $mail->IsHTML(false);
- $rc = $mail->quickMail($email, "", "Registration information for Tiny Tiny RSS", $reg_text, false);
+ $mailer = new Mailer();
+ $rc = $mailer->mail(["to_address" => $email,
+ "subject" => "Registration information for Tiny Tiny RSS",
+ "message" => $reg_text]);
- if (!$rc) print_error($mail->ErrorInfo);
+ if (!$rc) print_error($mailer->error());
- unset($reg_text);
- unset($mail);
- unset($rc);
$reg_text = "Hi!\n".
"\n".
"New user had registered at your Tiny Tiny RSS installation.\n".
"Login: $login\n".
"Email: $email\n";
+ $mailer = new Mailer();
+ $rc = $mailer->mail(["to_address" => REG_NOTIFY_ADDRESS,
+ "subject" => "Registration notice for Tiny Tiny RSS",
+ "message" => $reg_text]);
- $mail = new ttrssMailer();
- $mail->IsHTML(false);
- $rc = $mail->quickMail(REG_NOTIFY_ADDRESS, "", "Registration notice for Tiny Tiny RSS", $reg_text, false);
- if (!$rc) print_error($mail->ErrorInfo);
+ if (!$rc) print_error($mailer->error());
print_notice(__("Account created successfully."));
</body>
</html>
-