Introduction: This is a Windows (Linux --- fedora13) PHP mail (Sendmail + phpmailer) combined with the configuration details page, introduced and PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 344497 'rolling = 'no'>
In the past few days, when I used my website to retrieve my password, I sent it via email. I chose Sendmail + phpmailer combination. For configuration in windows, I need to configure Sendmail. ini and PHP. ini. If no Sendmail is found locally, download it first.
PHP. ini configuration:
SMTP = smtp.sina.com.cn
Smtp_port = 25
Sendmail_path = "C: \ PHP \ Sendmail \ sendmail.exe-t"
"C: \ PHP \ Sendmail \ sendmail.exe-T" is the Sendmail path.
The Internet says the path should be as short as possible, and I have not verified it.
Sendmail. ini configuration:
Smtp_server = smtp.sina.com.cn
Smtp_port = 25
The two are the accounts and passwords required for verification.
Auth_username = ifbs
Auth_password = xxxx
Force_sender = ifbs@sina.com.
By the way, socket extensions should also be enabled... In PHP. ini.
Then you can use it in the project.
Linux:
The configuration is the same as that on the Internet.
Recommended link: http://www.5dmail.net/html/2009-8-18/200981812958.htm
Remember that if you are using all extensions or if Apache MySQL is installed with yum, you need to check other information if tar.gz is installed.
In the current situation, if Yum install Sendmail is not available, install it and check whether the socket is enabled through phpinfo.
Follow the recommended post to view the configuration process. Many things are useless. If yum is installed,/etc/mail/sendmail. MC
File, just change it.
Of course, in PHP. ini, remember to configure only one path instead of configuring username passwd in win.
Sendmail_path =/usr/sbin/sendmail-t-I.
Of course, if someone says that the mail () function provided by PHP can also be used, but the current SMTP protocol is storage and forwarding, I believe everyone has discovered it, I sent this email to Sina.
First, you need to obtain the Sina email verification. So it must pass the verification.
If you use your own Linux system, you are not a company. I am using
Fedora13 SELinux reports an error, but I can't see it at all. It always shows a connection failure.
An error occurs only when a virtual machine is installed locally.
Http://www.51testing.com /? Uid-225738-action-viewspace-itemid-239851 this is the original post
Solution:
1. Disable SELinux and restart the system to make it take effect.
Modify the/etc/SELinux/config configuration file and set SELinux = disabled
If you do not want to restart the system, run the following command: setenforce 0.
(You can also modify the kernel startup parameter in grub. conf and add SELinux = 0. Of course, you need to restart the system)
2. Alternatively, modify SELinux settings so that the Apache process can access my directory.
Command: chcon-T var_t/home/repo; chcon-r-t httpd_sys_content_t pub
When we solve the SELinux permission problem and restart Apache, everything will be normal and my gitweb will be able to run normally.
We use it in the LAN, and the network environment is relatively secure, so the actualTestUsually disable SELinux during the process. Of course, it can also be enabled for security purposes.
If the problem persists, contact me QQ: 303956405. If you need source code to learn from each other, contact me .....
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/344497.html pageno: 4.