Resolved SMTP connect() failed...

Status
Not open for further replies.

sakhalia

New Member
Messages
6
Reaction score
0
Points
1
Hello...

I have tested my PHPMailer script from my XAMPP virtual server and it has worked fine, but when I run the same script from the X10 server I get the SMTP connect() failed error...

I am using these settings:

$mail->Host = "mail.sakhalianet.x10.mx";
$mail->Port = "25";
$mail->Username = "contact@sakhalianet.x10.mx";
 

Anna

I am just me
Staff member
Messages
11,751
Reaction score
581
Points
113
You would need to authenticate with password as well on our servers, and according to your settings there's no entry for the password.
 

sakhalia

New Member
Messages
6
Reaction score
0
Points
1
I have always had a Password entry in my script; I just have not added it to my post. I just wanted to show which e-mail and port I am using. My script worked before but now it does not work. I would like to know which is the reason, because it does not seem related to my script. I have checked the password and I have tried a different port (587) but the result is negative.
 

Anna

I am just me
Staff member
Messages
11,751
Reaction score
581
Points
113
The data you have in the post should work just fine if there's a password along with it.

I did find some information in the error log (can be found under System Info & Files->Site Summary / Statistics / Logs). Looks like your script expects a certificate, and the cert it gets does belong to the server rather then your domain so it gives an error. There's two options, 1. set the server address as host (note that you would need to change in the event of another server migration), or 2. look at the scripts settings and see if it is possible to use it without certificate.
 

sakhalia

New Member
Messages
6
Reaction score
0
Points
1
Your first suggestion fixed my problem... Thank you very much... :)

Regarding the "scripts settings" I do not know what you mean... Are those the PHPMailer settings, maybe...?
 

Anna

I am just me
Staff member
Messages
11,751
Reaction score
581
Points
113
Your first suggestion fixed my problem... Thank you very much... :)

Regarding the "scripts settings" I do not know what you mean... Are those the PHPMailer settings, maybe...?
yes, the script in this case would be the PHPMailer. I have not used it myself though so wouldn't know how much you can configure it.
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
@sakhalia I'm closing this thread for lack of activity. Please create a new thread if the need arises. Thank you.
 
Status
Not open for further replies.
Top