Before doing a project to do a phpmailer to send mail with the function of "CI framework combined with phpmailer send mail", yesterday step on the line (just start with Sina cloud, too expensive, replaced by Ali), the test, send an email
SMTP error:could not connect to SMTP host.
I use the Web page runtime Normal, can send, with the command to run PHP file times wrong, the main code is checked correctly, as follows
function SendMail ($setEmail, $setName, $body, $subject)
声明:以下步骤在drupal7下测试通过(将gmail换为有smtp 服务器的sina邮箱可以发送邮件)1.下载smtp模块: http://drupal.org/project/smtp(link is external) 2.解压模块,并在drupal下安装smtp模块。 3.配置stmp服务器:admin/config/system/smtp页面下配置 Turn this module on or off: On SMTP server:
Web Server-Apache & nginx & TomactHTTP server is essentially a couple of things:
Listening port
Receive (accept) socket connection
Parsing HTTP Requests
Distributing requests using a common or private protocol
Run results
Smtp and POP3 have not been configured before when installing smtp and pop3. now we use windows host and apache. how do I configure smtp and pop3? have you ever configured it? Next step? ------ Solution -------------------- If you remember correctly,
Smtp and POP3 have not been configured before when installing smtp and pop3. now we use windows host and apache. how do I configure smtp and pop3? have you ever configured it? Next Step ?, If you remember correctly, the default iis has a bad smtp.
Apache configuration file httpd.conf Chinese detailed## The configuration file based on the NCSA server is written by Rob McCool, Longzi translation## Apache Server master configuration file. Includes directory settings for server directives.# More
Phpmailer version used: 5.2.1
The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
$mail = new Phpmailer (); $body = file_get_contents ('
Phpmailer version used: 5.2.1The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
Copy Code
$mail = new Phpmailer ();$body = file_get_contents ('
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.