Read about unable to connect to smtp server, The latest news, videos, and discussion topics about unable to connect to smtp server from alibabacloud.com
Many settings contain multiple protocols. Just like the port on which Telnet is connected to the SNMTP server we will explain today. How can this problem be solved? Next we will explain in detail how to telnet to port 25 on the computer running the Simple Mail Transfer Protocol (SMTP) Service to solve SMTP communication problems. by default, the
Using Phpmailer to send messages uses an unencrypted SMTP server, and the SMTP server used this time is connected using SSL (secure Sockets Layer, Secure Sockets Layer).
Fortunately, Phpmailer support SSL SMTP server, online data
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:
This error indicates that the virtual host does not support the Fsockopen function that
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
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 cocould not instantiate mail functionAfter
(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 '
(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
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 unexpectedly error ....
I wipe, not on-line time good, the second success, just started I thought is the SMTP address problem (I use 163 mailbox), later changed to QQ mailbox, found or no use, no way, had to ask deg
The administrator can set verification options to improve the security of the domino SMTP server and reject anonymous SMTP connection requests (such ):
Starting from Domino 5.0.6, you can use the notes. ini parameter: smtpallowconnectionsanonymous.If the notes. in INI, set this parameter value to 1 (smtpallowconnectionsanonymous = 1 ), then, in the
1. Error descriptionDEBUG:setDebug:JavaMail version 1.3.3debug:getprovider () returning JAVAX.MAIL.PROVIDER[TRANSPORT,SMTP, Com.sun.mail.smtp.smtptransport,sun Microsystems, Inc]debug Smtp:useehlo True, Useauth TrueDEBUG smtp:trying to connect To host ' localhost ', port, Isssl falseexception in thread ' main ' javax.mail.MessagingException:Could not connect to
#---------------------------------------------------------------------- --------------
# 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
Recent projects related to the ability to send mail, using Phpmailer in the local debugging good, one on the server on the error, prompted: "SMTP Connect () failed. ”。 On-line search, found a solution, and successfully resolved, record, for a rainy day.Error message: "SMTP Connect
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, // the host of the server
2:
File: clas
, select automatically restart the destination server if required, and then click Install. When you are finished, click Close.
Configuring the SMTP ServerThe following are the steps to configure an SMTP virtual server by using IIS 6.0 Manager:
Open IIS Manager: Click the Windows button on the keyboard. Enter "
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, // the host of the server
2:
File: clas
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 host of the server
2:
Files: class.phpmailer.php
291 lines:
Public Function issmtp () {$
locally. If yes, save the email in the user C's mailbox and wait for the user to receive it.
4. User C uses Mua to connect to the POP3 or IMAP4 virtual server of the local MTA through POP3 or IMAP4 protocol to receive emails.
Tutorial steps:
1,RegisterDNSRegion andMXRecord
The SMTP virtual server dep
Properties.
On the Access tab, click the Relay button.
Click Add. For single computer, enter 127.0.0.1, and then click OK.By adding 127.0.0.1, we will allow the local server to send messages from this SMTP server. If you want other computers to send messages from this SMTP ser
What is the SMTP server?
The full name of SMTP is "Simple Mail Transfer Protocol", which is simply a message transfer protocol. It is a set of specifications for transmitting messages from the source address to the destination to control how the message is relayed. The SMTP protocol belongs to the TCP/IP protocol clus
://s3.51cto.com/wyfs02/M02/82/2A/wKioL1dNQY3TaKTTAAEGZs1-1_ I089.png "border=" 0 "/>4) Confirm that the SMTP port is 25650) this.width=650; "height=" 349 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/82/2B/ Wkiom1dnqjlsobcuaab-dng4axu752.png "border=" 0 "/>5) in the Access bar, click Identity Authentication, and then tick: Anonymous acce
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.