Jump to content

Godaddy - Phpmailer - Fsockopen


gasper000

Recommended Posts

I have made a registration form that uses PHPMAILER to send the users a confirmation email whenever they finish creating their account. The email has a confirmation link that they have to open in order for their account to be active. Anyway, I have tested the whole process on my own pc using WAMP & everything is working fine. When I uploaded the files to my hosting account at godaddy & tested the form, it gives me the following error:

"An error occurred in script 'blabla/class.smtp.php' on line 122: fsockopen() [function.fsockopen]: unable to connect to ssl://smtpout.secureserver.net:465 (Connection refused)

Date/Time: 7-23-2009 03:30:14

 

 

Array

(

[host] => ssl://smtpout.secureserver.net

[port] => 465

[tval] => 10

[errno] => 0

[errstr] =>

)"

I tried using different ports but it always gives me the same error.

 

NOTE: (the same files & codes worked fine on my PC using WAMP .. I could connect to ssl://smtpout.secureserver.net .. sent the confirmation email & received with no problem. Also, I can send & receive emails from myemail@mydomain.com which is hosted by godaddy.)

 

The error occurs ONLY WHEN USING THE REGISTRATION FORM WHICH SENDS A CONFIRMATION EMAIL AUTOMATICALLY WHEN THE USER HITS THE SUBMIT BUTTON.

 

fsockopen is enabled. I have checked it.

 

I did contact them & their answer was:

 

"In order to be able to send email through our hosting accounts that we offer you must use the following relay server in your code:

 

relay-hosting.secureserver.net

 

You do not need to provide a user name and password for this relay server as it does not require authentication."

 

I tried their solution but nothing changed. I read on their help files that fsockopen is enabled on port 80. I changed the port & now the error is:

 

An error occurred in script 'blabla/class.smtp.php' on line 122: fsockopen() [function.fsockopen]: unable to connect to relay-hosting.secureserver.net:80 (Connection timed out)

Date/Time: 7-24-2009 10:18:17

 

 

Array

(

    [host] => relay-hosting.secureserver.net

    [port] => 80

    [tval] => 10

    [errno] => 0

    [errstr] =>

 

I read that if errno is = 0 then the error occurred before reaching the fsockopen function. but still can't figure out what's the problem is...!!

 

how may the whole process work on my localhost using their servers but do not work when I upload the files on their hosting service ?!!

 

I have been thinking, it could be a configuration or version problem as the whole process works fine on my pc using wamp. What do you think ?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.