-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add user account ID to warning email
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,7 @@ function deleteUser($user, $em){ | |
|
||
function sendWarningEmail($user){ | ||
$userEmail = $user->getEmail(); | ||
$accountId = $user->getCertificateDn(); | ||
|
||
// Email content | ||
$headers = "From: [email protected]"; | ||
|
@@ -79,7 +80,7 @@ function sendWarningEmail($user){ | |
$localInfoXML = simplexml_load_file ( $localInfoLocation ); | ||
$webPortalURL = $localInfoXML->local_info->web_portal_url; | ||
|
||
$body = "Dear GOCDB User,\n\n" . "Your account has not signed in for the past 17 months and is due for deletion in 30 days.\n\n" . | ||
$body = "Dear GOCDB User,\n\n" . "Your account (ID:". $accountId .") has not signed in for the past 17 months and is due for deletion in 30 days.\n\n" . | ||
"You can prevent this by simply signing in at:\n\n" . $webPortalURL . "\n\n"; | ||
|
||
// Handle all mail related printing/debugging | ||
|