mirror of
https://github.com/itflow-org/itflow
synced 2026-03-25 14:55:38 +00:00
Stripe - tidy
This commit is contained in:
@@ -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)."...";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user