PHP 5.x IIS 7 emailing service BUG

In Progress Posted Feb 23, 2010 Paid on delivery
In Progress Paid on delivery

Need some one to figure out why the email functionality on a PHP "Contact Us" website page does not work. Website is running on Windows IIS 7 server. For some one skilled in PHP this should be an easy fix. PHP program is attached. This is a low budject project for what should be less than one hour of work. When bidding indicate if you have already identified the issue.

The website is hosted on GODADDY servers running Windows IIS 7.0

It appears that this issue has occurred in past. The folling solutions to the problem was found with Google. Need to modify the existing Contact_Us.PHP file to incorporate the required sections of the solutions found on Google or some alternate code you create to rectify the problem.

Solution 1:
Godaddy has the php.ini file configured with all the information. This is the code to send a email using php is:

<?
include_once("Mail.php");
...

$to = "support@software506.com";
$subject = "Email from php";
$body = "Hi
this is a test";

mail($to, $subject, $body);
...

this just works in the godaddy host, it works for me.
just try it.

Solution 2:
We too had one of our clients hosted with godady and this function working very well.
Old November 13th, 2007, 11:55 PM
Arrow Sending Email using PHP from Godaddy host
Hi guys this is what you have to use.

You need to use Pear thats already included on the godaddy hosting and then inlcude the mail.php

Here is a function to help you: This will even allow you to send html emails

require_once "Mail.php";

function emailHtml($from, $subject, $message, $to) {
$host = "localhost";
$username = "";
$password = "";

$headers = array ('MIME-Version' => "1.0", 'Content-type' => "text/html; charset=iso-8859-1;", 'From' => $from, 'To' => $to, 'Subject' => $subject);

$smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => false));

$mail = $smtp->send($to, $headers, $message);
if (PEAR::isError($mail))
return 0;
else
return 1;
}

Electronic Forms IIS PHP Windows Desktop

Project ID: #620424

About the project

7 proposals Remote project Active Feb 24, 2010