SMTP SOAP Server problems
| From: | Nicolas Hoizey | Date: | Thu, 22 May 2003 10:58:44 +0000 |
| Subject: | SMTP SOAP Server problems | ||
| References: | 1 | Groups: | php.pear.dev php.soap |
| Request: | Send a blank email to pear-dev+get-16621@lists.php.net to get a copy of this message | ||
Hi Shane and other SOAP users,
I'm trying to create SMTP SOAP servers and clients with PEAR::SOAP,
and I have found some possible problems...
In 'SOAP/Server/Email.php', line 198 is:
$soap_transport =& new SOAP_Transport('mailto:'.$from, $this->response_encoding);
I think it should instead be the following:
$soap_transport =& SOAP_Transport::getTransport('mailto:'.$from, $this->response_encoding);
At least it works for me like that.
One other problem I have is that I can't set my prefered SMTP host for
the reply. The $option part of the send function is set in
'SOAP/Server/Email.php' on line 201 and cannot be changed in the
calling script. I have no SMTP server on my localhost, so I must use
another one. I have to modify my 'SOAP/Transport/SMTP.php' file in
order to do that...
HTH
-Nicolas
--
Nicolas "Brush" HOIZEY
Free PHP projects http://www.phpheaven.net
Veille tous azimuts http://www.gasteroprod.com
Clever Age http://www.clever-age.com