Stripe - tidy

This commit is contained in:
Marcus Hill
2023-02-07 21:43:55 +00:00
parent 068737c7d3
commit 827c9dcd65
3 changed files with 13 additions and 12 deletions

View File

@@ -532,7 +532,7 @@ function sendSingleEmail($config_smtp_host, $config_smtp_username, $config_smtp_
} }
catch(Exception $e) { catch(Exception $e) {
// If we couldn't send the message return the error, so we can log it // If we couldn't send the message return the error, so we can log it in the database (truncated)
error_log("ITFlow - Failed to send email: " . $mail->ErrorInfo); error_log("ITFlow - Failed to send email: " . $mail->ErrorInfo);
return substr("Mailer Error: $mail->ErrorInfo", 0, 150)."..."; return substr("Mailer Error: $mail->ErrorInfo", 0, 150)."...";
} }

View File

@@ -274,7 +274,8 @@ if (isset($_GET['invoice_id'], $_GET['url_key']) && !isset($_GET['payment_intent
$mail = sendSingleEmail($config_smtp_host, $config_smtp_username, $config_smtp_password, $config_smtp_encryption, $config_smtp_port, $mail = sendSingleEmail($config_smtp_host, $config_smtp_username, $config_smtp_password, $config_smtp_encryption, $config_smtp_port,
$config_invoice_from_email, $config_invoice_from_name, $config_invoice_from_email, $config_invoice_from_name,
$contact_email, $contact_name, $contact_email, $contact_name,
$subject, $body); $subject, $body
);
// Email Logging // Email Logging
if ($mail === true) { if ($mail === true) {