Skip to content
Merged
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: 1 addition & 1 deletion site/common/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ function registerUser($dbh, &$output, $name, $email, $adminEmail) {
$hash = strtoupper(substr($output['user_hash'], 0, 8));
$subject = mysqli_real_escape_string('Welcome to Crowdcast!');
$body = mysqli_real_escape_string(sprintf("Hi %s,\r\n\r\nWelcome to Crowdcast (formerly known as Epicast)! Here's your User ID: %s\r\nYou can login and begin forecasting here: https://delphi.cmu.edu/epicast/launch.php?user=%s\r\n\r\nThank you,\r\nThe Delphi Team\r\n\r\n[This is an automated message. Please direct all replies to: %s. Unsubscribe: https://delphi.cmu.edu/epicast/preferences.php?user=%s]", $name, $hash, $hash, $adminEmail, $hash));
$dbh->query("INSERT INTO automation.email_queue (`from`, `to`, `subject`, `body`) VALUES ('[email protected]', '{$email}', '{$subject}', '{$body}')");
$dbh->query("INSERT INTO automation.email_queue (`from`, `to`, `subject`, `body`, `priority`, `timestamp`) VALUES ('[email protected]', '{$email}', '{$subject}', '{$body}', 0.9, UNIX_TIMESTAMP(NOW()))");
$dbh->query("CALL automation.RunStep(2)");
setResult($output, 1);
return getResult($output);
Expand Down