Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7616003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:47:02+00:00 2026-05-31T02:47:02+00:00

Okkkk…I don’t know much about the PHP mail function so don’t blast me for

  • 0

Okkkk…I don’t know much about the PHP mail function so don’t blast me for this. The problem is this…I’m hosting my own site using the freedns.afraid.org nameservers and when you go to my domain it redirects to my no-ip domain. I am hosting use xampp. I have my domain registered under godaddy and also my email. Here is how I have everything set up from my configs to my code. For reason unknown to me, I can’t send emails! I probably have this whole thing messed up but I’m just asking for help.

php.ini

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = relay-hosting.secureserver.net
; http://php.net/smtp-port
smtp_port = 3535

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = account@godaddydomain.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

my sendmail config

[sendmail]

smtp_server=relay-hosting.secureserver.net
smtp_port=3535
error_logfile=error.log
debug_logfile=debug.log
auth_username=
auth_password=
force_sender=

my html and php test email code

<html>
<head><title>PHP Mail() test</title></head>
<body>
This form will attempt to send a test email. Please enter where this test should be sent to<br><p>
<form action = "mail.php" method = "post" name="sendmail">
Enter an email address: <input type = "text" name = "to"><br>
<input type="submit" value="Send" name="submit"><input type="reset" value="Reset" name="reset"><br><p>
<?php
if(isset($_POST['to'])) {
       $mail_to=$_POST['to'];
    $mail_subject="Test email from";
    $mail_body="This is a test email, sent from ";
    $header = "<admin@godaddydomain.com>";

    if(mail($mail_to, $mail_subject, $mail_body,$header,"-fadmin@godaddyadmin.com")) {
        print "Email sent successfully!";
    } else {
        print "Email did not send!!!!!";
    }
}
?>
</body>
</html>

Debug info

12/03/08 11:08:42 ** This is a test email, sent from 
12/03/08 11:08:42 ** --- MESSAGE END ---
12/03/08 11:08:42 ** Connecting to relay-hosting.secureserver.net:3535
12/03/08 11:08:52 ** Disconnected.
12/03/08 11:08:52 ** Disconnected.
12/03/08 11:08:52 ** Disconnected.
12/03/08 11:08:52 ** Disconnected.
12/03/08 11:08:52 ** Connect timed out.
12/03/08 11:29:18 ** --- MESSAGE BEGIN ---
12/03/08 11:29:18 ** To: bice64g@aim.com

Also I get this error

Warning: mail() [function.mail]: Failed to connect to mailserver at
“relay-hosting.secureserver.net” port 3535, verify your “SMTP” and
“smtp_port” setting in php.ini or use ini_set() in
C:\xampp\htdocs\Test\mail.php on line 20

12/03/08 11:29:18 ** Subject: Test email from
12/03/08 11:29:18 ** Content-type: text/html
12/03/08 11:29:18 ** From: "PHP mail() Test Script"<noreply@>
12/03/08 11:29:18 ** 
12/03/08 11:29:18 ** This is a test email, sent from 
12/03/08 11:29:19 ** --- MESSAGE END ---
12/03/08 11:29:19 ** Connecting to relay-hosting.secureserver.net:3535
12/03/08 11:29:29 ** Disconnected.
12/03/08 11:29:29 ** Disconnected.
12/03/08 11:29:29 ** Disconnected.
12/03/08 11:29:29 ** Disconnected.
12/03/08 11:29:29 ** Connect timed out.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:47:04+00:00Added an answer on May 31, 2026 at 2:47 am

    The error that you provided shows that you are attempting to use “relay-hosting.secureserver.net” as the relay server in your application. That address is a gateway for email leaving Go Daddy webhosting servers. It will not be available from a Go Daddy Dedicated server or from a personal server not located within a Go Daddy datacenter. If you are hosting this on a Go Daddy Virtual or Dedicated server you can get your personal relay server information from the Go Daddy support chat. If you are hosting this application outside of the Go Daddy network you will need to get the correct relay information from your hosting or network provider. Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I followed this tutorial , and I wrote the following code in FirstViewController.m: -
hi guys i was wondering how could i build e regExp that says: this
I have set up the code to call a remote server from Android app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.