RE: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25
| From: | Håkon Strandenes | Date: | Sun, 06 Jul 2003 06:55:48 +0000 |
| Subject: | RE: [PHP] 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-154110@lists.php.net to get a copy of this message | ||
How do I specify witch SMTP server I shall use? I cannot set this in the
PHP.ini file, so I must specift this in the script.
Regards,
Håkon Strandenes
-----Original Message-----
From: Håkon Strandenes [mailto:haakon.strandenes@seilforening.no]
Sent: 5. juli 2003 21:25
To: php-general@lists.php.net
Subject: RE: [PHP] Re: Failed to Receive in E:\...\mailscript.php on
line 25
No, actually not. But i think so. This is the server to my ISP, so I
cannot change it. But the SMTP server is set to "localhost", so I THINK
it's correct.
I have made a php script with only the "phpinfo()" tag in here:
http://grimstad.seilforening.no/Mailinglister/phpinfo.php
Regards,
Håkon Strandenes
-----Original Message-----
From: Thomas Seifert [mailto:thomas.seifert@myphorum.de]
Sent: 5. juli 2003 22:17
To: php-general@lists.php.net
Subject: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25
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.");
>
> }
> }
> ?>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---
[This E-mail was scanned for viruses by Declude Virus]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---
[This E-mail was scanned for viruses by Declude Virus]