Re: Failed to Receive in E:\...\mailscript.php on line 25
| From: | Thomas Seifert | Date: | Sat, 05 Jul 2003 20:17:09 +0000 |
| Subject: | Re: Failed to Receive in E:\...\mailscript.php on line 25 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154070@lists.php.net to get a copy of this message | ||
are you sure that the smtp-settings in php.ini are correct on your host's server?
Thomas
On Sat, 5 Jul 2003 20:15:14 +0200 haakon.strandenes@seilforening.no (Håkon strandenes) wrote:
> Hi,
>
> I am making a small PHP script for managing a simple mailing list. The
> PHP script is added in the bottom of this message.
>
> This PHP script works great on IIS 5.1 with PHP 4.3.0, witch I have
> installed locally on my system to test my scripts. But when I transfer
> the script over to my host server (With IIS and PHP 4.2.1), I get an
> error message when I'm trying to use it. The error message is like this:
>
> Warning: Failed to Receive in
> E:\inetpub\wwwroot\grimstad.seilforening\Mailinglister\mailscript.php on
> line 25 Kommandoen er nå sendt. Merk at det kan ta opp til 5 minutter
> før den trer i kraft.PHP Warning: Failed to Receive in
> E:\inetpub\wwwroot\grimstad.seilforening\Mailinglister\mailscript.php on
> line 25
>
> Is there any compatibility problems between 4.2.1 and 4.3.0 for the
> codes I have used in my script?
>
> Regards,
> Håkon Strandenes
>
>
> Here is the script (It get its inputs from this form:
>
> http://grimstad.seilforening.no/Mailinglister/Styreskjema.html):
>
> <?php
>
> @extract($_POST);
>
> $Liste = stripslashes($Liste);
> $Navn = stripslashes($Navn);
> $Email = stripslashes($Email);
> $Kommando = stripslashes($Kommando);
>
> if (!$Email)
> {
> echo ("Du må fylle inn din e-mail adresse.");
> }
> else
> {
> if (!$Navn)
> {
> echo ("Du må fylle inn navnet ditt.");
> }
> else
> {
>
> $Message = "Automatisk generert styringsmail";
> $Headers = "From: $Navn <$Email>";
> mail( $Liste, $Kommando, $Message, $Headers );
>
> echo ("Kommandoen er nå sendt. Merk at det kan ta opp til 5 minutter før
> den trer i kraft.");
>
> }
> }
> ?>
>
>