2017 © Pedro Peláez
 

library smtper

A simple SMTP Email senter class with PHP.

image

gclinux/smtper

A simple SMTP Email senter class with PHP.

  • Monday, April 9, 2018
  • by gclinux
  • Repository
  • 1 Watchers
  • 3 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 12 % Grown

The README.md

intuition

This is a very simple class of PHP mail sending Supports UTF-8 , supports sending attachments., (*1)

一个支持附件的php邮件发送类, (*2)

require

it need these ext in php:, (*3)

需要开启以下PHP扩展:, (*4)

sockets,fileinfo , openssl, (*5)

install:

support composer:, (*6)

本类支持composer直接安装, (*7)

composer require gclinux/smtper

how to use:

$mail = new gclinux\Smtper();

 $mail->setDebug(true); //do you want to output the debug information.是否输出调试信息

 $mail->setServer("smtp.XXX.COM", "your_acount@XXXXX", "passwd"); //Setting the SMTP server without SSL. 无SSL的SMTP服务器设置

$mail->setServer("XXXXX", "joffe@XXXXX", "XXXXX", 465, true); //Seeting the SMTP server with SSL .SSL的SMTP服务器设置

 $mail->setFrom("XXXXX"); //Email Sender name 发送者

 $mail->setReceiver("XXXXX@local"); //Email reciver 接收者
 $mail->setReceiver("XXXXX2@local"); //Email reciver,multiple calls will add recivers.多次调用会累计添加接受者

 $mail->setCc("XXXX"); //Set CC .抄送
$mail->setBcc("XXXXX"); //Set CC,multiple calls will append.多次调用会添加.

 $mail->addAttachment("XXXX.png"); //Attachment 附件

 $mail->addAttachment("XXXX.csv"); // 添加附件,多个附件,调用多次 

 $mail->setMail("title ", "<b>body</b>"); //the titile and body 标题和内容

$mail->send();

it can work well without composer,but you need to inlcude "src/Smtp.php", (*8)

它也可以不需要composer,但你要手动include src/Smtp.php这个文件:, (*9)

include "src/Smtp.php"

The Versions

09/04 2018

dev-master

9999999-dev

A simple SMTP Email senter class with PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar gclinux

09/04 2018

1.01

1.01.0.0

A simple SMTP Email senter class with PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar gclinux

09/11 2017

1.0.0

1.0.0.0

A simple SMTP Email senter class with PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar gclinux