Phpmailer is a great open source messaging class, and it's very simple to use, but for a virtual host, there are always restrictions. Just now I encountered an "SMTP error:could not connect to SMTP host" error using Phpmailer on a virtual host. Here are two ways to fix this:
(1) The server cannot send mail using SMTP
Workaround: Many sites listed the solution is because of the SMTP case, although the nature of the problem is not here, but do need to change this place, as for why, look at the following operation.
In class.phpmailer.php, you will:
function Issmtp () {$this->mailer= ' SMTP ';}
Change to:
function Issmtp () {$this->mail
(1) The server cannot send emails using smtp.
Solution: the solution listed by many websites is due to the smtp case sensitivity problem. Although the problem is not here in essence, it must be changed. For the reason, refer to the following operations.
In class. phpmailer. php, set:
function IsSMTP(){$this->Mailer='smtp';}
Changed:
function IsSMTP(){$this->Maile
Cause analysisIf this problem occurs, the name of the SMTP host Solution: It depends on the email payment does not support sending and receiving mails by pop3. This can be viewed officially by email, such as QQ mail.Phpmailer error SMTP Error: cocould not connect to SMTP host
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) {Require_once ("phpmail/phpmailer.php");$mail = new Phpmailer (true); The true param means it would throw exceptions on errors
Php PHPMailer sends an Email and cannot connect to the host because the fsockopen function is disabled. PHPmailer sends an Email based on this function.
Modify:
Class. stmp. php
Solution:
1:
Row 3:
$ This-> smtp_conn = fsockopen ($ host, // the host of the server
Changed:
$ This-> smtp_conn = pfsockopen ($ host
PHP Phpmailer Send the message, there is no connection to host, this is because the Fsockopen function is disabled, Phpmailer send email dependent on this function.
Modify:
class.stmp.php
Solve:
1:
118 lines:
$this->smtp_conn = Fsockopen ($host,//The host of the server
Switch
$this->smtp_conn = Pfsockopen ($host,//The
PHP phpmailer sends an email and cannot connect to the host because the fsockopen function is disabled. phpmailer sends an email based on this function.
Modify:
Class. stmp. php
Solution:
1:
Row 3:
$ This-> smtp_conn = fsockopen ($ host, // the host of the server
Changed:
$ This-> smtp_conn = pfsockopen ($ host
HiChina hosts all seem to need to send emails through SMTP, and enable fsockopen. However, the SMTP sending method of WordPress is steam_connect_client instead of fsockopen.
HiChina hosts all seem to need to send emails through SMTP, and to enable fsockopen (this can be enabled in HiChina background. if not, please contact HiChina customer service ). But the
#---------------------------------------------------------------------- --------------
# Encryption key cannot be given
# The username and password are encrypted and decrypted tools are in the Desutil
#--------------------------------------- ---------------------------------------------
#登陆用户名 I wrote it casually,
mail.smtp.username=. cboch2llydmw2432vyrede4tjvjrstamcoe123111
#密码 QQ for authorization code 111111 I wrote it casually
mail.smtp.password= avq5jebimunr5f4wcllzza==
problems encounte
Using DEDECMS to customize a Send mail php file, using the dedecms comes with mail.class.php, can be sent locally, after uploading to the server, prompted cannot connenct to relay host Smtp.qq.com Error: () error:cannot send email to [email protected] online to find a lot of articles, finally solved, the problem is in the server environment configuration. Find php.ini, see two places, one is Allow_url_fopen, this place is to be set to on, and the othe
The present free mail Service is many, for example 163 enterprise mailbox, QQ Enterprise mailbox and so on. Do not need to build a mail server to send mail to the designated user, only need to register any one of the SMTP protocol support mailbox can be implemented to send mail. Messages can be sent via Linux commands, shell scripts written by themselves, or Python scripts written in Python.The following code is a simple but practical example. By defa
PHP gets a lot of remote host file content methods, such as: File_get_contents,fopen and so on.
But if the same domain name corresponds to a different IP, for example demo.fdipzone.com corresponds to 3 IP192.168.100.101, 192.168.100.102, 192.168.100.103.
You cannot use file_get_contents to get the content of 192.168.100.101 because it is assigned to different hosts based on the load balancing principle, so it is not certain that each time you are
1. Summary:
ICMP and IP protocol belong to the same level (network layer), its message is sealed in the IP message transmission, and the port is the Transport Layer TCP/UDP protocol concept, so ping port is not successful
Ping server was found to be inaccessible today, but it was possible to access the server, so banning ping and port access are two concepts.
Ping impassability, there may be a ban ping, XP can be banned ping, open the firewall on the line
2.ping Detaile
is the time zone setup problem, and the workaround is to modify the time zone of the configuration file.
Stop the OEM, and then open $oracle_home/hostname_sid/sysman/config/emd.properties, and the last line
Agenttzregion=gmt
Change into
Agenttzregion=asia/shanghai
The specific time zone name can be viewed $oracle_home/sysman/admin/supportedtzs.lst or through the data query select Tzname from V$timezone_names;
Typically, this setting is complete and then restarted. You may also experience this e
Oracle 10g OEM regular error solving ------- Unknown host specified Oracle Enterprise Manager provides a web-based interface-based tool for managing a single oracle database. Since OEMs use web-based applications, therefore, http is used. When you log on to www.2cto.com: database error I/O exception: Unknown host specified
, if you want to mount a folder other than the drive but the drive, then the drive letter followed by a specific address, such as: "\ 192.168.1.110\h\ folder a\ folders under folder A B\ folder B under folder C ... ".(2) The "account name" and "password" in the figure refer to the account number and password you used to login in Windows, not the account password in DSM, remember!These two points must be strictly according to do, I am these two points did not write to consume me for a long time,
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.