PHPackages                             lsys/mailsender - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. lsys/mailsender

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

lsys/mailsender
===============

lsys module mailsender

0.0.1(5y ago)039Apache-2.0PHP

Since Jun 28Pushed 5y agoCompare

[ Source](https://github.com/php-lsys/mailsender)[ Packagist](https://packagist.org/packages/lsys/mailsender)[ RSS](/packages/lsys-mailsender/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

邮件发送接口
======

[](#邮件发送接口)

> 目的:使你的系统发送邮件不依赖与某个邮件发送方式,从而实现邮件发送系统的无缝切换 代码里只设置邮件内容变量,邮件内容剥离出代码层,并支持附件发送

使用示例:

```
//配置文件:dome/config/mail.php
//邮件渲染:dome/Mail/MyMail.php
//设置默认发送配置
//创建一个邮件内容
$simple=new Eml("eml_name");//eml_name 为对应配置值
$simple->set_title("aaa");//设置标题
$simple->set_body_vars(array("link"=>"http://baidu.com"));//设置内容变量
$simple->set_attachment(array(__DIR__."/test.png"));//设置附件
//创建一个发送邮件元素
$item=new Item($simple);
//添加收件人
$item->add_to("97148830@qq.com");//LSLSlsls1212312312
try{
	//执行发送
	$send=MailSender::factory()->send($item);
	var_dump($send);
}catch (\LSYS\Exception $e){
	print_r($e->getMessage());
}

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2147d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f1652fec3beae86de90c6615dd28be4729251e1b2bb08f1cd18e8193e6c4e48?d=identicon)[lsys](/maintainers/lsys)

---

Top Contributors

[![shanliu](https://avatars.githubusercontent.com/u/2927231?v=4)](https://github.com/shanliu "shanliu (12 commits)")[![php-lsys](https://avatars.githubusercontent.com/u/43031308?v=4)](https://github.com/php-lsys "php-lsys (1 commits)")

### Embed Badge

![Health badge](/badges/lsys-mailsender/health.svg)

```
[![Health](https://phpackages.com/badges/lsys-mailsender/health.svg)](https://phpackages.com/packages/lsys-mailsender)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
