: 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:
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
Windows Server 2003 building a mail serverBecause Windows Server 2003 defaults to not installing the POP3 and SMTP services we need to build our mail servers, we need to install them ourselves. Here's how:1. Place the Windows Server 2003 System CD
Ecshop implements smtp mail and ecshopsmtp sends mail. Ecshop implements smtp mail sending. when ecshopsmtp sends mail using the ECShop smtp method, the statement in the get_data method is executed in the cls_smtp class file: copy the code such as
From:http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/ E4cf06f5-9a36-474b-ba78-3f287a2b88f2.mspx?mfr=trueSMTP Server Setup (IIS 6.0)The Simple Mail Transfer Protocol (SMTP) service provided by IIS are a simple component for
Two ways to send mail, bloggers have personally tested the success of the 1.TP official website Method
(http://www.thinkphp.cn/extend/248.html)a). Introducing function Libraries: Email.class.php placed under the component folderb). configuration
The code is as follows:Copy code Require ("class. phpmailer. php ");$ Mail = new phpmailer ();$ Mail-> charset = 'utf-8 ';$ Address = $ _ post ['address'];$ Mail-> issmtp (); // set mailer to use smtp$ Mail-> host = "mail.xxx.com"; // specify
[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
Ecshop implementing SMTP Sending mail
This article mainly describes the Ecshop implementation of SMTP send mail, the need for friends can refer to the following
When you send a message by using Ecshop SMTP, in the Cls_smtp class file, execute the
Lightweight PHP mail sent, need to have an SMTP server, code after a lot of actual use, now the code to share to everyone
Copy CodeThe code is as follows:
/*Mail Send SMTP ServiceConnect SMTP server, send mail, copyright, can't copy@author:
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.