Mail Server (Postfix + Dovecot + Extmail + Extman Based on Virtual account)
Lab Topology
LAMP (Linux + Apache + MySQL + PHP) Environment Construction
First, we need to build a LAMP Environment
Install Apache
[Root @ mail apr-1.4.6] # tar-zxvf
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time,
Smtp.class.php This is the class to save him to a file.
Copy the Code code as follows:
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;/*
In PHP, you provide a mail-sending function mail function that sends e-mail directly in your program, but it requires the server to support SendMailOr you must set up a mail-sending server that does not require relaying, but it is almost impossible
1. PHP Built-in mail () functionPHP itself provides a mail send function mail, you can send e-mail directly in the program, but this function requires the server to support SendMail or must set up a mail sending server that does not need to relay,
Php adds the Mail sending function to the site, and php mail sending. Php allows you to add the Mail sending function to the site. for php mail sending, the following summer blog explains how to add a mail sending function to the site. First, you
How PHP sends mail via mail () or socket 1.PHPPHP sends the message "very simple" because he provides the mail () function to send directly, but this also followsRegister Globals became the second biggest killer for beginners.(1) Send mail via mail (
Use dedecms to customize a mail to send the PHP file, using the dedecms of the mail.class.php, local can be sent, upload to the server, appear prompted cannot connenct to relay host Smtp.qq.com Error: () error:cannot send email to XXX@qq.com online
PHP Implementation 163 e-mail messages, php163 send mail
163 mailbox Everyone has used it, then based on how to implement the PHP 163 mailbox Automatically send mail function, the following to help the small people to share specific implementation
As a developer of PHP, there is often a need to add a Web site that uses its own domain name as the sender's e-mail address to automatically send messages, for example, to send users a verification code, notification information, and so on. For
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.