mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-08 22:47:03 +08:00
19 lines
377 B
PHP
Executable File
19 lines
377 B
PHP
Executable File
<?php
|
|
|
|
namespace service\MessageService\Email;
|
|
|
|
class EmailSender
|
|
{
|
|
const DRIVER_MAIL = 'service\MessageService\Email\Driver\Mail';
|
|
|
|
static public function send(
|
|
string $email,
|
|
string $title,
|
|
string $body,
|
|
string $driver = self::DRIVER_MAIL
|
|
) {
|
|
$result = $driver::send($email, $title, $body);
|
|
return $result;
|
|
}
|
|
}
|