title: php mail issue with godaddy
body: <p>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.</p>
  
  <p>php.ini</p>
  
  <pre><code>[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"
  </code></pre>
  
  <p>my sendmail config</p>
  
  <pre><code>[sendmail]
  
  smtp_server=relay-hosting.secureserver.net
  smtp_port=3535
  error_logfile=error.log
  debug_logfile=debug.log
  auth_username=
  auth_password=
  force_sender=
  </code></pre>
  
  <p>my html and php test email code</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;title&gt;PHP Mail() test&lt;/title&gt;&lt;/head&gt;
  &lt;body&gt;
  This form will attempt to send a test email. Please enter where this test should be sent to&lt;br&gt;&lt;p&gt;
  &lt;form action = "mail.php" method = "post" name="sendmail"&gt;
  Enter an email address: &lt;input type = "text" name = "to"&gt;&lt;br&gt;
  &lt;input type="submit" value="Send" name="submit"&gt;&lt;input type="reset" value="Reset" name="reset"&gt;&lt;br&gt;&lt;p&gt;
  &lt;?php
  if(isset($_POST['to'])) {
         $mail_to=$_POST['to'];
      $mail_subject="Test email from";
      $mail_body="This is a test email, sent from ";
      $header = "&lt;admin@godaddydomain.com&gt;";
  
      if(mail($mail_to, $mail_subject, $mail_body,$header,"-fadmin@godaddyadmin.com")) {
          print "Email sent successfully!";
      } else {
          print "Email did not send!!!!!";
      }
  }
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Debug info</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Also I get this error</p>
  
  <blockquote>
    <p>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</p>
  </blockquote>
  
  <pre><code>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"&lt;noreply@&gt;
  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.
  </code></pre>