Brand Frontdesk Laravel mail for hosts and report recipients.
Deploy Ladill Frontdesk / deploy (push) Has been cancelled
Deploy Ladill Frontdesk / deploy (push) Has been cancelled
Pass organization logo/name through ContactMessageMail for daily reports and campaigns, and drop the Ladill product footer. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Jobs;
|
||||
use App\Models\Activity;
|
||||
use App\Models\Campaign;
|
||||
use App\Models\CampaignRecipient;
|
||||
use App\Models\Organization;
|
||||
use App\Models\User;
|
||||
use App\Services\Campaigns\CampaignBillingService;
|
||||
use App\Services\Campaigns\CampaignMessageService;
|
||||
@@ -56,6 +57,8 @@ class SendCampaignMessageJob implements ShouldQueue
|
||||
return;
|
||||
}
|
||||
|
||||
$organization = Organization::query()->where('owner_ref', $campaign->owner_ref)->first();
|
||||
|
||||
$sent = $campaign->channel === Campaign::CHANNEL_SMS
|
||||
? $sms->send((string) $recipient->recipient_phone, $body)
|
||||
: $email->send(
|
||||
@@ -64,6 +67,7 @@ class SendCampaignMessageJob implements ShouldQueue
|
||||
$body,
|
||||
$this->senderName($campaign),
|
||||
$this->senderEmail($campaign),
|
||||
$organization,
|
||||
);
|
||||
|
||||
if (! $sent) {
|
||||
|
||||
Reference in New Issue
Block a user