mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
email quality
This commit is contained in:
parent
f592af1469
commit
866dd58b03
@ -33,7 +33,7 @@ class Account extends BaseModel
|
|||||||
use PresentableTrait;
|
use PresentableTrait;
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
|
|
||||||
private $free_plan_email_quota = 100;
|
private $free_plan_email_quota = 50;
|
||||||
|
|
||||||
private $paid_plan_email_quota = 500;
|
private $paid_plan_email_quota = 500;
|
||||||
/**
|
/**
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace App\Notifications\Ninja;
|
namespace App\Notifications\Ninja;
|
||||||
|
|
||||||
|
use App\Models\Company;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Foundation\Bus\Dispatchable;
|
use Illuminate\Foundation\Bus\Dispatchable;
|
||||||
@ -29,11 +30,14 @@ class EmailQualityNotification extends Notification
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
protected $company;
|
protected Company $company;
|
||||||
|
|
||||||
public function __construct($company)
|
protected string $spam_string;
|
||||||
|
|
||||||
|
public function __construct(Company $company, string $spam_string)
|
||||||
{
|
{
|
||||||
$this->company = $company;
|
$this->company = $company;
|
||||||
|
$this->spam_string = $spam_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -77,7 +81,8 @@ class EmailQualityNotification extends Notification
|
|||||||
|
|
||||||
$owner = $this->company->owner();
|
$owner = $this->company->owner();
|
||||||
|
|
||||||
$content .= "Owner {$owner->present()->name() } | {$owner->email}";
|
$content .= "Owner {$owner->present()->name() } | {$owner->email} \n";
|
||||||
|
$content .= "Spam trigger: {$this->spam_string}";
|
||||||
|
|
||||||
return (new SlackMessage)
|
return (new SlackMessage)
|
||||||
->success()
|
->success()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user