Skip to content

Commit

Permalink
Add default replyToEmail
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Oct 31, 2024
1 parent 928112c commit 00a187e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ protected function createSettingsModel(): SettingsModel
$settings->apiKey = StringHelper::randomString(16);
$settings->fromNamesEmails = [
[
$mailSettings->fromName,
$mailSettings->fromEmail,
'',
$mailSettings->fromName ?? '',
$mailSettings->fromEmail ?? '',
$mailSettings->replyToEmail ?? '',
Craft::$app->getSites()->getPrimarySite()->id,
],
];
Expand Down
6 changes: 3 additions & 3 deletions src/helpers/SettingsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public static function getFromNameEmail(int $siteId = null): array
$mailSettings = App::mailSettings();

$firstFromNameEmail = [
'name' => App::parseEnv($mailSettings->fromName),
'email' => App::parseEnv($mailSettings->fromEmail),
'replyTo' => App::parseEnv($mailSettings->replyToEmail),
'name' => App::parseEnv($mailSettings->fromName) ?? '',
'email' => App::parseEnv($mailSettings->fromEmail) ?? '',
'replyTo' => App::parseEnv($mailSettings->replyToEmail) ?? '',
];
}

Expand Down

0 comments on commit 00a187e

Please sign in to comment.