Please can anyone help me.
i am using xampp and eclipse i hav configured lot of the stuff but, i am not able to configure the mercury mail sending server. i have written a program which is as follows:

//Check whether the submission is made
if(isset($_POST['hidSubmit'])){

//Declarate the necessary variables
$mail_to=$_POST['txtEmailto'];
$mail_from=$_POST['txtEmailfrm'];
$mail_sub=$_POST['txtSub'];
$mail_mesg=$_POST['txtMsg'];
$from_name="VocalBug";

//Check for success/failure of delivery
if(mail($mail_to,$mail_sub,$mail_mesg,"From: \"$from_name\" <$mail_from>\r\n"))
print("Send");
else
print("Not send");
}

the program works on IIS very well but when i installed xampp, the mercury service doesnt send mail to the particular address. at first it gave me some error as
Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in "----"
i modified the mercury.ini file and set the relay option to 1. then it gave me the time zone settings error. i am confused totally, please can u guys help me out, will be grateful to u. its too important to resolve the issue.

Comments

rav_nan’s picture

Title: Installation problems in Mercury for mail sending » Installation problems in xampp for SOAP protocol

Hey guys help me in configuring xampp correctly please,
i hav installed xampp and phpeclipse correctly. i am presently working on configuring webservices through xampp, which i am not able to do for the past 2 weeks, its very necessary for me. i have written a code which is as follows:

this code is for webservices that is for the server.

require_once 'SOAP/Server.php';
 
// Your class
class HelloServer {
    var $__dispatch_map = array();
 
    function HelloServer() {
        // Define the signature of the dispatch map
        $this->__dispatch_map['sayHello'] =
            array('in' => array('inputString' => 'string'),
                  'out' => array('outputString' => 'string'),
                  );
    }
 
    // Required function by SOAP_Server
    function __dispatch($methodname) {
        if (isset($this->__dispatch_map[$methodname]))
            return $this->__dispatch_map[$methodname];
        return NULL;
    }
 
    // Your function
    function sayHello($inputString)
    {
        return 'Hello '.$inputString;
    }
}
 
// Fire up PEAR::SOAP_Server
$server = new SOAP_Server;
 
// Fire up your class
$helloServer = new HelloServer();
 
// Add your object to SOAP server (note namespace)
$server->addObjectMap($helloServer,'urn:HelloServer');
 
// Handle SOAP requests coming is as POST data
if (isset($_SERVER['REQUEST_METHOD']) &&
    $_SERVER['REQUEST_METHOD']=='POST') {
    $server->service($HTTP_RAW_POST_DATA);
} else {
    // Deal with WSDL / Disco here
    require_once 'SOAP/Disco.php';
 
    // Create the Disco server
    $disco = new SOAP_DISCO_Server($server,'HelloServer');
    header("Content-type: text/xml");
    if (isset($_SERVER['QUERY_STRING']) &&
        strcasecmp($_SERVER['QUERY_STRING'],'wsdl')==0) {
        echo $disco->getWSDL(); // if we're talking http://www.example.com/index.php?wsdl
    } else {
        echo $disco->getDISCO();
    }
    exit;
}

the code for client is:

require_once 'SOAP/Client.php';

// Modify the URL here - note the "?wsdl" at the end
$wsdl = new SOAP_WSDL ('http://localhost/wsdl/hello_server.php?wsdl');

$helloClient = $wsdl->getProxy();

echo ( $helloClient->sayHello('Bill') );

i am not able to find out the exact error as to why it does not recognise the packages even though i hav installed the xampp correctly. it gives me several errors like

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Server.php on line 134

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Server.php on line 359

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Server.php on line 360

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Server.php on line 372

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Server.php on line 382

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Server.php on line 507

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Server.php on line 508

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Server.php on line 793

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Server.php on line 806

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 201

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 522

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 627

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 628

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 743

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 882

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 1052

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 1081

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 1112

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 1159

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Base.php on line 1203

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\PEAR.php on line 563

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\PEAR.php on line 566

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 212

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 213

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 214

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 219

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 220

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 221

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 275

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 322

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 343

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 350

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Parser.php on line 415

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Value.php on line 90

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\Value.php on line 93

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 217

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 238

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 792

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1070

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1153

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1195

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1243

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1257

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1271

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1306

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1351

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1354

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1379

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1381

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1420

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1631

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1679

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1734

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\SOAP\WSDL.php on line 1753

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\HTTP\Request.php on line 341

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\HTTP\Request.php on line 659

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\HTTP\Request.php on line 672

Strict Standards: Assigning the return value of new by reference is deprecated in D:\public_html\Test\HTTP\Request.php on line 717

Strict Standards: Redefining already defined constructor for class Net_URL in D:\public_html\Test\Net\URL.php on line 122

Warning: Cannot modify header information - headers already sent by (output started at D:\public_html\Test\SOAP\Server.php:134) in D:\public_html\Test\Phpinfo.php on line 49
please tell me where i am wrong in configuring xampp.

swentel’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

I'm not sure why you post this in my issue queue. You should look for documentation at http://www.apachefriends.org/en/faq-xampp.html or at any other apache/windows configuration forum.