# iflow_emailer **Repository Path**: mkccl/iflow_emailer ## Basic Information - **Project Name**: iflow_emailer - **Description**: iflow_emailer - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-26 - **Last Updated**: 2022-01-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: Email ## README # iflow_emailer ## 安装 ```shell composer require iflow/emailer ``` ## 使用 ```php use iflow\EMailer\implement\Message\Html; use iflow\EMailer\Mailer; $config = [ 'default' => 'qqMailer', 'emails' => [ 'mailer' => [ 'userName' => 'localhost', 'passWord' => 'pwd', 'fromName' => 'localhost:', 'from' => 'root', 'ssl' => true, 'smtpHost' => 'smtp.exmail.domain.com', 'smtpPort' => 465, 'timeOut' => 1, 'mimeVersion' => '1.0', 'options' => [ 'open_eof_check' => true, 'package_eof' => "\r\n", 'package_max_length' => 65536 ] ] ] ]; $mail = new Mailer($config, 'mailer'); $content = new Html(); $content = $content -> setHtml("

测试邮件

带附件") -> addAttachment('filename', 'filepath', encoded: 'base64') -> setSubject("测试邮件"); ```