Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Updated to use the Debian libphp-phpmailer package.

----------------------------------------------------------------------------------------
DESCRIPTION

Expand Down
9 changes: 7 additions & 2 deletions bin/rt-diff.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@
chdir($rtwwwroot);

include ('inc/init.php');
include ("$rtdiffroot/lib/class.phpmailer.php");
include ("$rtdiffroot/lib/class.smtp.php");
# Use the Debian libphp-phpmailer package, the old local stuff is outdated!
require("/usr/share/php/libphp-phpmailer/autoload.php");
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;

date_default_timezone_set('GMT');
$ts = date("Ymd-His");
Expand Down Expand Up @@ -107,6 +110,8 @@

## Send email report:
$email = new PHPMailer;
# If you need smtp debugging, uncomment the next line:
# $email->SMTPDebug = SMTP::DEBUG_SERVER;
$email->isSMTP();
$email->CharSet = "UTF-8";
$email->Host = $smtphost;
Expand Down