Skip to content

Commit

Permalink
adding forms version to the fallback email
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Aug 10, 2023
1 parent 009e9b6 commit f78b8d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eightshift-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Description: Eightshift Forms is a complete form builder plugin that utilizes modern Block editor features with multiple third-party integrations, bringing your project to a new level.
* Author: WordPress team @Infinum
* Author URI: https://eightshift.com/
* Version: 4.0.61
* Version: 4.0.62
* Text Domain: eightshift-forms
*
* @package EightshiftForms
Expand Down
3 changes: 3 additions & 0 deletions src/Integrations/Mailer/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace EightshiftForms\Integrations\Mailer;

use CURLFile;
use EightshiftForms\Config\Config;
use EightshiftForms\Helpers\Helper;
use EightshiftForms\Helpers\UploadHelper;
use EightshiftForms\Integrations\Greenhouse\SettingsGreenhouse;
Expand Down Expand Up @@ -91,6 +92,8 @@ public function fallbackEmail(array $data): bool
$formId = $data['formId'] ?? '';
$isDisabled = $data['isDisabled'] ?? false;

$data['formsVersion'] = Config::getProjectVersion();

// translators: %1$s replaces the integration name and %2$s formId.
$subject = \sprintf(\__('Failed %1$s integration: %2$s', 'eightshift-forms'), $integration, $formId);
$body = '<p>' . \esc_html__('It seems like there was an issue with the user\'s form submission. Here is all the data for debugging purposes.', 'eightshift-forms') . '</p>';
Expand Down

0 comments on commit f78b8d8

Please sign in to comment.