Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25
thanks - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 06, 2003 7:06 PM Subject: Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25 On Sunday 06 July 2003 14:59, Håkon Strandenes wrote: This is not my server, so I cannot change the settings in php.ini. This is my ISP's server, and I think they run SMPT om the same server. And yes, this is a Windows 2000 server. A quick and easy way to check whether mail() would work is to use the error_log() function. How do I set the SMTP server I shall use in the script? I have no access to the php.ini... I believe you can set that at run-time using ini_set(). I will contact my ISP at moonday and tell them about my problem. Good idea! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Theory is gray, but the golden tree of life is green. -- Goethe */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25
On Sunday 06 July 2003 03:25, Håkon Strandenes wrote: 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. You're using some Windows system? Are you running an SMTP server on that machine? If not then you cannot use 'localhost' for your SMTP setting. Try changing it to the SMTP server provided by your ISP. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Default, n.: The hardware's, of course. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25
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:[EMAIL PROTECTED] Sent: 5. juli 2003 21:25 To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED] Sent: 5. juli 2003 22:17 To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] (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] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25
This is not my server, so I cannot change the settings in php.ini. This is my ISP's server, and I think they run SMPT om the same server. And yes, this is a Windows 2000 server. How do I set the SMTP server I shall use in the script? I have no access to the php.ini... I will contact my ISP at moonday and tell them about my problem. Regards, Håkon Strandenes -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 6. juli 2003 08:56 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25 On Sunday 06 July 2003 03:25, Håkon Strandenes wrote: 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. You're using some Windows system? Are you running an SMTP server on that machine? If not then you cannot use 'localhost' for your SMTP setting. Try changing it to the SMTP server provided by your ISP. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Default, n.: The hardware's, of course. */ -- 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
Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25
On Sunday 06 July 2003 14:55, Håkon Strandenes wrote: Please trim your posts! How do I specify witch SMTP server I shall use? If you're using mail() then in php.ini. I cannot set this in the PHP.ini file, Why not? If it's on some hosting service then obviously the hosting service have gotten their settings wrong. And they should do something to rectify it! so I must specift this in the script. If all else fails, you have to abandon the use of mail(). There are several alternatives here: www.phpclasses.org, which allows you to specify an SMTP server at run-time. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* No sex with anyone in the same office -- Murphy's Laws on Sex n8 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25
On Sunday 06 July 2003 14:59, Håkon Strandenes wrote: This is not my server, so I cannot change the settings in php.ini. This is my ISP's server, and I think they run SMPT om the same server. And yes, this is a Windows 2000 server. A quick and easy way to check whether mail() would work is to use the error_log() function. How do I set the SMTP server I shall use in the script? I have no access to the php.ini... I believe you can set that at run-time using ini_set(). I will contact my ISP at moonday and tell them about my problem. Good idea! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Theory is gray, but the golden tree of life is green. -- Goethe */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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:[EMAIL PROTECTED] Sent: 5. juli 2003 22:17 To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] (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