First, Introduction
Mail () function, you can use this function to send e-mail.
Demand
In order to be able to use the mail function, PHP must have the power to compile and send binary mail files in your system. If you use other mail programs, such
This article mainly introduced the PHP implementation to support SSL connection SMTP mail send class, the example analyzes the PHP implementation SMTP mail sends the class the principle and the technique, as well as the support SSL connection method,
This article mainly introduces the PHP based on the socket to implement SMTP mail method, the example of PHP using socket to implement the SMTP mail message principle and skills, with a certain reference value, the need for friends can refer to the
-
The main improvements are as follows:
1, the new Listmessages method for list mailing list, and with paging function, more convenient to call
/*** Listmessages-Get mailing list* @param $page-the first few pages* @param $per _page-How many messages
This php e-mail code uses php's free email sending function mail to send emails. He will use two methods to determine whether the mail function is available, if the row uses it to send it, otherwise fsockopen will be used for operation.*/ The code
Full Mail Send class
Class SMTP
{
/* Public Variables */
var $smtp _port;
var $time _out;
var $host _name;
var $log _file;
var $relay _host;
var $debug;
var $auth;
var $user;
var $pass;
/* Private Variables */var $sock;
/* Constractor */ Function
A script that sends an e-mail message may be one of the most common scripts you can find on a Web site, although it's simple, and a mail script can sometimes make the programmer very frustrated. PHP has a function called mail (), it only needs to
PHP's small program for sending mail is simple, but there are a few things to keep in mind. First on the code:
!--? php $to = "gonnsai@163.com"; $user = "Gonn"; $date = Date ("Y year M D Day"); $headers = ' mime-version:1.0 '. "RN"; $headers. = '
A script that sends an e-mail message may be one of the most common scripts you can find on a Web site, although it's simple, a mail script can sometimes make programmers very frustrated. There is a function called mail () in PHP that only needs to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.