Code Monkey home page Code Monkey logo

mail's Introduction

mail

php发送邮件sdk

参数说明

名称 类型 描述
smtp_host smtp服务器地址 string
smtp_port smtp服务器端口 int
smtp_user 发送账号 string
smtp_pass 发送密码 string
smtp_pass 是否支持html bool

使用案例

include 'mail.php';

// 网易
$config = [
 	'smtp_host'	=>	'smtp.163.com',
 	'smtp_port'	=>	25,
 	'smtp_user'	=>	'[email protected]',
 	'smtp_pass'	=>	'****',
 	'smtp_name'	=>	'bool',
 	'html'		=>	true,
];

$mail = new Mail($config);
$mail->send('[email protected]','subject123',' <h1>33</h1> <a href="http://www.baidu.com"> baidu</a> <hr>')

支持邮箱

网易
$config = [
	'smtp_host'	=>	'smtp.163.com',
	'smtp_port'	=>	25,
	'smtp_user'	=>	'[email protected]',
	'smtp_pass'	=>	'****',
	'smtp_name'	=>	'bool',
	'html'		=>	true,
];


sina 新浪 (text)
$config = [
	'smtp_host'	=>	'smtp.sina.com',
	'smtp_port'	=>	25,
	'smtp_user'	=>	'[email protected]',
	'smtp_pass'	=>	'*******',
	'smtp_name'	=>	'bool',
	'html'		=>	true,
];


sohu 搜狐 (beta)
$config = [
	'smtp_host'	=>	'imap.sohu.com',
	'smtp_port'	=>	25,
	'smtp_user'	=>	'[email protected]',
	'smtp_pass'	=>	'*******',
	'smtp_name'	=>	'bool',
	'html'		=>	false,
];


ali 阿里 (text)
$config = [
	'smtp_host'	=>	'smtp.aliyun.com',
	'smtp_port'	=>	25,
	'smtp_user'	=>	'[email protected]',
	'smtp_pass'	=>	'*******',
	'smtp_name'	=>	'bool',
	'html'		=>	false,
];

189 天翼 (beta)
$config = [
	'smtp_host'	=>	'smtp.189.cn',
	'smtp_port'	=>	465,
	'smtp_user'	=>	'[email protected] ',
	'smtp_pass'	=>	'*******',
	'smtp_name'	=>	'bool',
	'html'		=>	false,
];


Outlook (beta)
$config = [
	'smtp_host'	=>	'smtp.live.com',
	'smtp_port'	=>	587,
	'smtp_user'	=>	'[email protected]',
	'smtp_pass'	=>	'*******',
	'smtp_name'	=>	'bool',
	'html'		=>	true,
];

2980
$config = [
	'smtp_host'	=>	'smtp.2980.com',
	'smtp_port'	=>	25,
	'smtp_user'	=>	'[email protected]',
	'smtp_pass'	=>	'*******',
	'smtp_name'	=>	'bool',
	'html'		=>	true,
];


qq (beta)
$config = [
	'smtp_host'	=>	'smtp.exmail.qq.com',
	'smtp_port'	=>	25,
	'smtp_user'	=>	'[email protected]',
	'smtp_pass'	=>	'****',
	'smtp_name'	=>	'bool',
	'html'		=>	true,
];

mail's People

Contributors

chenbool avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.