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
Compiling the source package requires./configure then compile a. so fileOne less error packetInstall packageNormal displayThe LS directory has a./configure fileQuerying module LocationsEditing a configuration fileEditing a configuration fileIncrease
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
Send mail using Phpmailer, phpmailer send mail
Reprint http://blog.csdn.net/liruxing1715/article/details/7914974
Phpmailer's official website: http://phpmailer.worxware.com/
Phpmailer Latest class Library download address: "Click to
PHPMailer is also a powerful mail class PHPMailer main features: Support mail s/mime encrypted digital signatures support mail multiple TOs, CCs, BCCsandREPLY-TOs can work on any server platform, so you don't have to worry about the failure of the
For this tutorial sample code see Https://github.com/johnlui/My-First-Framework-based-on-Composer
ReviewIn the previous article, we built a simple view loader by hand and introduced the error handling package to make our MFFC framework "usable"
How to configure smtp mail sending in php in linux
Include_once ("class. phpmailer. php ");
/**
* Define email module preparation information
*/
Define ("SMTP_HOST", "smtp.mail.yahoo.com");
Phpmailer is also a powerful mail-enabled class
Main features of Phpmailer:
Digital signatures that support message S/MIME encryption
Support mail multiple TOs, CCs, BCCs and Reply-tos
Can work on any server platform, so don't worry about the win
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,
PHPMailer is also a powerful mail classMain features of PHPMailer:Supports mail s/mime-encrypted digital signaturesSupports email to multiple TOs, CCs, BCCs and REPLY-TOsCan work on any server platform, so you don't have to worry about the problem
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.