Ask a Question related to PHP Development, Design and Development.
-
Paolo #1
mail(): ' Warning: Failed to Connect in ... on line ...'
Hi everybody,
I'm a newbie using PHP4 and Apache 1.3 on Win98.
When I launch a script just having this instruction:
mail ("test.address@example.com", "My Subject", "My message");
I got this annoying message:
Warning: Failed to Connect in myscript.php on line ...
Of course the e-mail address provided is a real one; I have also
changed in the following way the values in php.ini file :
SMTP=localhost;
sendmail_from=my.real.address@my.provider.com
Do you have any hints or suggestions ?
Any help will be very appreciated, thank you in advance.
Kind regards,
Paolo
Paolo Guest
-
#21653 [Com]: Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed
ID: 21653 Comment by: laudanp at yahoo dot com Reported By: support at hostcolor dot com Status: Closed Bug... -
Failed to connect to mail server: Unknown error.
Hi all, I've a perl script that does the sending of email using MIME..however i keep getting this error when i run the script: Failed to connect... -
#24785 [Opn->Fbk]: Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed
ID: 24785 Updated by: wez@php.net Reported By: laudanp at yahoo dot com -Status: Open +Status: ... -
#24785 [NEW]: Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed
From: laudanp at yahoo dot com Operating system: Redhat 7.3 PHP version: 4CVS-2003-07-23 (stable) PHP Bug Type: Sockets... -
#21653 [Csd->Opn]: Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed
ID: 21653 User updated by: support at hostcolor dot com Reported By: support at hostcolor dot com -Status: Closed... -
Pedro #2
Re: mail(): ' Warning: Failed to Connect in ... on line ...'
Paolo wrote:
Do you have a SMTP server installed on your computer?> changed in the following way the values in php.ini file :
>
> SMTP=localhost;
Try changing to SMTP=smtp.myprovider.com
--
I have a spam filter working.
To mail me include "urkxvq" (with or without the quotes)
in the subject line, or your mail will be ruthlessly discarded.
Pedro Guest
-
Paulus Magnus #3
Re: mail(): ' Warning: Failed to Connect in ... on line ...'
"Paolo" <pscola@tiscalinet.it> wrote in message
news:07ldnvcc12levf2v96629neufamko6gje3@4ax.com...You need to run a mail server on your machine to receive the outgoing email.> Hi everybody,
> I'm a newbie using PHP4 and Apache 1.3 on Win98.
>
> When I launch a script just having this instruction:
>
> mail ("test.address@example.com", "My Subject", "My message");
>
> I got this annoying message:
>
> Warning: Failed to Connect in myscript.php on line ...
>
> Of course the e-mail address provided is a real one; I have also
> changed in the following way the values in php.ini file :
>
> SMTP=localhost;
> sendmail_from=my.real.address@my.provider.com
>
> Do you have any hints or suggestions ?
I assume this is a development environment as you're running Windows 98. I
use a product called PostCast Server which is a freebie, I'm not sure if it
works on Win98 though.
Pablo
Paulus Magnus Guest



Reply With Quote

