Introduced MailerSend as an email provider with essential configuration options, including API key management and "reply-to" support. Enhanced email functionality by implementing a modular template system (header, footer, and content) for both text and HTML formats. Updated the existing email infrastructure to handle Stripe invoice notifications via MailerSend with conditional fallback planned for default SMTP services.
12 lines
184 B
PHP
12 lines
184 B
PHP
<?php
|
|
|
|
namespace email\helpers;
|
|
|
|
trait email_template
|
|
{
|
|
protected string $subject;
|
|
|
|
abstract function generate_html(): string;
|
|
|
|
abstract function generate_text(): string;
|
|
} |