email/MailService.php

madong-admin-saas · core/communication/email/MailService.php · php · Apache-2.0
email

Email service that sends messages via PHPMailer using config services.

// Source: https://github.com/madong-code/madong-admin-saas | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);

/**
 *+------------------
 * madong
 *+------------------
 * Copyright (c) https://gitee.com/motion-code  All rights reserved.
 *+------------------
 * Author: Mr. April (405784684@qq.com)
 *+------------------
 * Official Website: http://www.madong.tech
 */
namespace core\communication\email;

use app\service\admin\system\config\ConfigService as AdminConfigService;
use app\service\platform\system\ConfigService as PlatformConfigService;
use core\foundation\exception\handler\AdminException;
use PHPMailer\PHPMailer\Exception;
use PHPMailer\PHPMa

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key