wepesi/mailer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wepesi/mailer

最新稳定版本:v0.1.3

Composer 安装命令:

composer require wepesi/mailer

包简介

simple php module to help send smtp email using php mail function

README 文档

README

simple php module to help send email using php mail module Note: Its should test on a live server. from localhost is not yet supported.

use Wepesi\Mailer\Email; 
 use Wepesi\Mailer\smtpConfiguration; 
  
 include_once __DIR__."/../vendor/autoload.php"; 
  
 $smtpConfig = (new smtpConfiguration()) 
     ->smtpServer("localhost") 
     ->smtpPort(25) 
     ->setUsername("you@example.com") 
     ->setPassword("p@ssW0rd") 
     ->organization("Wepesi") 
     ->generate(); 
 $email = new Email($smtpConfig); 
 $email->from("me@example.com"); 
 $email->to("you@example.com","wepesi"); 
 $email->subject("Subject"); 
 $email->text("Hello World"); 
 $email->setBCC(["johndoe@example.com","janedoe@example.com"]); 
 $email->setCC(["alfa@example.com","beta@example.com"]); 
 $result = $email->send(); 
  
 if(isset($result['exception'])){ 
     var_dump("email not sent"); 
 } 
 var_dump($result);

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2023-01-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固