When you are still in the tangle php built-in mail () function can not send mail, then you are very lucky now, this article can help you!
PHP uses the SMTP class to send mail is very good, I used a long time, basically did not have a problem. This
[HTML]
Define (' smtp_status_not_connected ', 1, TRUE);
Define (' smtp_status_connected ', 2, TRUE);
Class P8_SMTP
{
var $connection;
var $recipients;
var $headers;
var $timeout;
var $errors;
var $status;
var $body;
var $from;
var $host;
var
: This article mainly introduces two methods for sending mails by php using smtp. For more information about php tutorials, see. Original article: http://www.jbxue.com/php/25502.html
This article introduces two methods for sending mails in php:
Author: Rockay (Liu Qichao, Liu Tao)Page: http://www.cnblogs.com/RockayEmail: rockay_liu@126.com
Note: Some of them refer to online materials.
Recently, a JAVA mail group function has been provided for friends. Because I have been engaged in. NET
Original: http://www.jbxue.com/php/25502.html
This article introduces two methods of sending mail in PHP, using the PHP built-in mail () function to send mail, sending mail using the message class encapsulating the SMTP protocol, and recommending
If you encounter this problem, write it out and share it with you.
This program does not use the javamail API, but directly processes the sent mail according to the requirements of the SMTP protocol. Although it is troublesome, it is helpful to
smtp.class.php
Copy Code code as follows:
Define (' smtp_status_not_connected ', 1, TRUE);
Define (' smtp_status_connected ', 2, TRUE);
Class SMTP
{
var $connection;
var $recipients;
var $headers;
var $timeout;
var $errors;
Use a Socket to send an email (using the SMTP server to be verified ).? * Name: use Socket to send emails * Description: This class enables direct sending of emails using the SMTP server to be verified. See the article "sending emails with Socket":
Use Socket to send emails (using the SMTP server to be verified)
* Name: use Socket to send an email* Description: This class allows you to directly send emails using the SMTP server to be verified. for details, see limodou, author of "sending
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.