f



can't send mail using mail()

hello,

i am new to sending mail with php. the first function i tried is the
mail(). when i passed the required parameters (to, message,subject),
the apache error log said that the parameters are uninitialised. but
the parameters already had value.

do you know what is wrong?

thank you
0
3/16/2009 12:28:31 PM
comp.lang.php 32646 articles. 0 followers. Post Follow

19 Replies
1111 Views

Similar Articles

[PageSpeed] 11

fasisi wrote:
> hello,
> 
> i am new to sending mail with php. the first function i tried is the
> mail(). when i passed the required parameters (to, message,subject),
> the apache error log said that the parameters are uninitialised. but
> the parameters already had value.
> 
> do you know what is wrong?
> 
> thank you

Sorry, my crystal ball is broken.  I can't see your code.

Try posting your code so we can see what might be wrong.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
0
jstucklex (14659)
3/16/2009 1:14:28 PM
On Mar 16, 8:14=A0pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> fasisi wrote:
> > hello,
>
> > i am new to sending mail with php. the first function i tried is the
> > mail(). when i passed the required parameters (to, message,subject),
> > the apache error log said that the parameters are uninitialised. but
> > the parameters already had value.
>
> > do you know what is wrong?
>
> > thank you
>
> Sorry, my crystal ball is broken. =A0I can't see your code.
>
> Try posting your code so we can see what might be wrong.
>
> --
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

hello jerry,

this is the code

mail('fasisi2003@yahoo.com', 'test', 'test');

and this is the error log from apache:

[Mon Mar 16 20:25:47 2009] [error] [client 127.0.0.1] PHP Warning:
mail() [<a href=3D'function.mail'>function.mail</a>]:
&quot;sendmail_from&quot; not set in php.ini or custom
&quot;From:&quot; header missing in C:\\Frans\\Private\\Projects\\php\
\basin\\genlibs\\pekerjaan.inc on line 228, referer:
http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2

[Mon Mar 16 20:25:47 2009] [error] [client 127.0.0.1] PHP Stack
trace:, referer: http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaa=
n=3D2

[Mon Mar 16 20:25:47 2009] [error] [client 127.0.0.1] PHP   1. {main}
() C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2

[Mon Mar 16 20:25:47 2009] [error] [client 127.0.0.1] PHP   2.
tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
\pekerjaan.php:123, referer: http://localhost/basin/pekerjaan.php?iduser=3D=
4&idpekerjaan=3D2

[Mon Mar 16 20:25:47 2009] [error] [client 127.0.0.1] PHP   3. mail
(*uninitialized*, *uninitialized*, *uninitialized*) C:\\Frans\\Private\
\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228, referer:
http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2

0
3/16/2009 1:28:20 PM
babi gendut wrote:
> On Mar 16, 8:14 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> fasisi wrote:
>>> hello,
>>> i am new to sending mail with php. the first function i tried is the
>>> mail(). when i passed the required parameters (to, message,subject),
>>> the apache error log said that the parameters are uninitialised. but
>>> the parameters already had value.
>>> do you know what is wrong?
>>> thank you
>> Sorry, my crystal ball is broken.  I can't see your code.
>>
>> Try posting your code so we can see what might be wrong.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
> 
> hello jerry,
> 
> this is the code
> 
> mail('fasisi2003@yahoo.com', 'test', 'test');
> 
> and this is the error log from apache:
> 
> [Mon Mar 16 20:25:47 2009] [error] [client 127.0.0.1] PHP Warning:
> mail() [<a href='function.mail'>function.mail</a>]:
> &quot;sendmail_from&quot; not set in php.ini or custom
> &quot;From:&quot; header missing in C:\\Frans\\Private\\Projects\\php\
> \basin\\genlibs\\pekerjaan.inc on line 228, referer:
> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2

This first error message pretty much tells the story.

Though in the php manual (which we all know you read) is states the 4th 
parameter as optional. This is true with one exception, if your "From:" 
field is not set in your php.ini you WILL need to add it to your mail() 
function.

$header = "From: <your email address>\r\n";

main($to, $subject, $message, $header);


Scotty
0
futureshock (237)
3/16/2009 1:37:26 PM
On Mar 16, 8:37=A0pm, Scott Johnson <futuresh...@att.net> wrote:
> babi gendut wrote:
> > On Mar 16, 8:14 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> >> fasisi wrote:
> >>> hello,
> >>> i am new to sending mail with php. the first function i tried is the
> >>> mail(). when i passed the required parameters (to, message,subject),
> >>> the apache error log said that the parameters are uninitialised. but
> >>> the parameters already had value.
> >>> do you know what is wrong?
> >>> thank you
> >> Sorry, my crystal ball is broken. =A0I can't see your code.
>
> >> Try posting your code so we can see what might be wrong.
>
> >> --
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >> Remove the "x" from my email address
> >> Jerry Stuckle
> >> JDS Computer Training Corp.
> >> jstuck...@attglobal.net
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> > hello jerry,
>
> > this is the code
>
> > mail('fasisi2...@yahoo.com', 'test', 'test');
>
> > and this is the error log from apache:
>
> > [Mon Mar 16 20:25:47 2009] [error] [client 127.0.0.1] PHP Warning:
> > mail() [<a href=3D'function.mail'>function.mail</a>]:
> > &quot;sendmail_from&quot; not set in php.ini or custom
> > &quot;From:&quot; header missing in C:\\Frans\\Private\\Projects\\php\
> > \basin\\genlibs\\pekerjaan.inc on line 228, referer:
> >http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
>
> This first error message pretty much tells the story.
>
> Though in the php manual (which we all know you read) is states the 4th
> parameter as optional. This is true with one exception, if your "From:"
> field is not set in your php.ini you WILL need to add it to your mail()
> function.
>
> $header =3D "From: <your email address>\r\n";
>
> main($to, $subject, $message, $header);
>
> Scotty

hello,

i have added the header 'from' and i got different error log from
apache:

[Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP Warning:
mail() [<a href=3D'function.mail'>function.mail</a>]: Failed to connect
to mailserver at &quot;localhost&quot; port 25, verify your
&quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use
ini_set() in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
\pekerjaan.inc on line 228, referer: http://localhost/basin/pekerjaan.php?i=
duser=3D4&idpekerjaan=3D2

[Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP Stack
trace:, referer: http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaa=
n=3D2

[Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   1. {main}
() C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2

[Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   2.
tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
\pekerjaan.php:123, referer: http://localhost/basin/pekerjaan.php?iduser=3D=
4&idpekerjaan=3D2

[Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   3. mail
(*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*) C:
\\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
referer: http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
[Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
exist: C:/Frans/Private/Projects/php/favicon.ico

do i have to have mail server? like a free smtp server?

thank you,
fasisi
0
3/16/2009 1:50:02 PM
babi gendut wrote:
> On Mar 16, 8:37 pm, Scott Johnson <futuresh...@att.net> wrote:
>> babi gendut wrote:
>>> On Mar 16, 8:14 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>> fasisi wrote:
>>>>> hello,
>>>>> i am new to sending mail with php. the first function i tried is the
>>>>> mail(). when i passed the required parameters (to, message,subject),
>>>>> the apache error log said that the parameters are uninitialised. but
>>>>> the parameters already had value.
>>>>> do you know what is wrong?
>>>>> thank you
>>>> Sorry, my crystal ball is broken.  I can't see your code.
>>>> Try posting your code so we can see what might be wrong.
>>>> --
>>>> ==================
>>>> Remove the "x" from my email address
>>>> Jerry Stuckle
>>>> JDS Computer Training Corp.
>>>> jstuck...@attglobal.net
>>>> ==================
>>> hello jerry,
>>> this is the code
>>> mail('fasisi2...@yahoo.com', 'test', 'test');
>>> and this is the error log from apache:
>>> [Mon Mar 16 20:25:47 2009] [error] [client 127.0.0.1] PHP Warning:
>>> mail() [<a href='function.mail'>function.mail</a>]:
>>> &quot;sendmail_from&quot; not set in php.ini or custom
>>> &quot;From:&quot; header missing in C:\\Frans\\Private\\Projects\\php\
>>> \basin\\genlibs\\pekerjaan.inc on line 228, referer:
>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>> This first error message pretty much tells the story.
>>
>> Though in the php manual (which we all know you read) is states the 4th
>> parameter as optional. This is true with one exception, if your "From:"
>> field is not set in your php.ini you WILL need to add it to your mail()
>> function.
>>
>> $header = "From: <your email address>\r\n";
>>
>> main($to, $subject, $message, $header);
>>
>> Scotty
> 
> hello,
> 
> i have added the header 'from' and i got different error log from
> apache:
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP Warning:
> mail() [<a href='function.mail'>function.mail</a>]: Failed to connect
> to mailserver at &quot;localhost&quot; port 25, verify your
> &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use
> ini_set() in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> \pekerjaan.inc on line 228, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP Stack
> trace:, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   1. {main}
> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   2.
> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
> \pekerjaan.php:123, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   3. mail
> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*) C:
> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
> referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
> exist: C:/Frans/Private/Projects/php/favicon.ico
> 
> do i have to have mail server? like a free smtp server?
> 
> thank you,
> fasisi

In the From: field, you may need to use your account email.  This all 
depends on what mail service you are using.  I am not very knowledgeable 
with mail servers and such but I am sure someone may chime in to help. 
I do know that when testing mine, the From: field needs to be the same 
email that I have registered for that smtp service.

Scotty

0
futureshock (237)
3/16/2009 2:43:03 PM
babi gendut <Frans.Indroyono@gmail.com> wrote in comp.lang.php:
> On Mar 16, 8:37=C2=A0pm, Scott Johnson <futuresh...@att.net> wrote:
> > babi gendut wrote:
> > > On Mar 16, 8:14 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> > >> fasisi wrote:
> > >>> hello,
> > >>> i am new to sending mail with php. the first function i tried is th=
e
> > >>> mail(). when i passed the required parameters (to, message,subject)=
,
> > >>> the apache error log said that the parameters are uninitialised. bu=
t
> > >>> the parameters already had value.
> > >>> do you know what is wrong?
> > >>> thank you
> > >> Sorry, my crystal ball is broken. =C2=A0I can't see your code.
> >
> > >> Try posting your code so we can see what might be wrong.

<sig snipped>

> > > hello jerry,
> >
> > > this is the code
> >
> > > mail('fasisi2...@yahoo.com', 'test', 'test');
> >
> > > and this is the error log from apache:
> >
> > > [Mon Mar 16 20:25:47 2009] [error] [client 127.0.0.1] PHP Warning:
> > > mail() [<a href=3D'function.mail'>function.mail</a>]:
> > > &quot;sendmail_from&quot; not set in php.ini or custom
> > > &quot;From:&quot; header missing in C:\\Frans\\Private\\Projects\\php=
\
> > > \basin\\genlibs\\pekerjaan.inc on line 228, referer:
> > >http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >
> > This first error message pretty much tells the story.
> >
> > Though in the php manual (which we all know you read) is states the 4th
> > parameter as optional. This is true with one exception, if your "From:"
> > field is not set in your php.ini you WILL need to add it to your mail()
> > function.
> >
> > $header =3D "From: <your email address>\r\n";
> >
> > main($to, $subject, $message, $header);
> >
> > Scotty
>=20
> hello,
>=20
> i have added the header 'from' and i got different error log from
> apache:
>=20
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP Warning:
> mail() [<a href=3D'function.mail'>function.mail</a>]: Failed to connect
> to mailserver at &quot;localhost&quot; port 25, verify your
> &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use
> ini_set() in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> \pekerjaan.inc on line 228, referer: http://localhost/basin/pekerjaan.php=
?iduser=3D4&idpekerjaan=3D2

<snip>

> do i have to have mail server? like a free smtp server?

Yes.  Which version of Windows are you using?  I believe NT and XP=20
Professional have IIS.  You will need to enable IIS and configure the=20
SMTP server or get another mail server.

To learn about configuring IIS, you should Google IIS and/or check a=20
Windows newsgroup.

> thank you,
> fasisi

--=20
Curtis
$email =3D str_replace('sig.invalid', 'gmail.com', $from);
0
dyer851 (264)
3/16/2009 8:40:34 PM
babi gendut wrote:
> On Mar 16, 8:37 pm, Scott Johnson <futuresh...@att.net> wrote:
>> babi gendut wrote:
>>> On Mar 16, 8:14 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>> fasisi wrote:
>>>>> hello,
>>>>> i am new to sending mail with php. the first function i tried is the
>>>>> mail(). when i passed the required parameters (to, message,subject),
>>>>> the apache error log said that the parameters are uninitialised. but
>>>>> the parameters already had value.
>>>>> do you know what is wrong?
>>>>> thank you
>>>> Sorry, my crystal ball is broken.  I can't see your code.
>>>> Try posting your code so we can see what might be wrong.
>>>> --
>>>> ==================
>>>> Remove the "x" from my email address
>>>> Jerry Stuckle
>>>> JDS Computer Training Corp.
>>>> jstuck...@attglobal.net
>>>> ==================
>>> hello jerry,
>>> this is the code
>>> mail('fasisi2...@yahoo.com', 'test', 'test');
>>> and this is the error log from apache:
>>> [Mon Mar 16 20:25:47 2009] [error] [client 127.0.0.1] PHP Warning:
>>> mail() [<a href='function.mail'>function.mail</a>]:
>>> &quot;sendmail_from&quot; not set in php.ini or custom
>>> &quot;From:&quot; header missing in C:\\Frans\\Private\\Projects\\php\
>>> \basin\\genlibs\\pekerjaan.inc on line 228, referer:
>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>> This first error message pretty much tells the story.
>>
>> Though in the php manual (which we all know you read) is states the 4th
>> parameter as optional. This is true with one exception, if your "From:"
>> field is not set in your php.ini you WILL need to add it to your mail()
>> function.
>>
>> $header = "From: <your email address>\r\n";
>>
>> main($to, $subject, $message, $header);
>>
>> Scotty
> 
> hello,
> 
> i have added the header 'from' and i got different error log from
> apache:
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP Warning:
> mail() [<a href='function.mail'>function.mail</a>]: Failed to connect
> to mailserver at &quot;localhost&quot; port 25, verify your
> &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use
> ini_set() in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> \pekerjaan.inc on line 228, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP Stack
> trace:, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   1. {main}
> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   2.
> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
> \pekerjaan.php:123, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   3. mail
> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*) C:
> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
> referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
> exist: C:/Frans/Private/Projects/php/favicon.ico
> 
> do i have to have mail server? like a free smtp server?
> 
> thank you,
> fasisi

Yes, you either need a local mail server (warning - many email hosts 
will dump email from dynamic IPs because they are used for SPAM), or you 
need to connect to the email server you normally use.

Unfortunately, most email servers require authentication (those which 
don't are know as "spam relays"), which isn't quite so easy to do with 
the mail() function.  It can be done, but not too easily.

I would recommend you get the phpmailer class and use it - it makes 
emailing so much easier.


-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
0
jstucklex (14659)
3/16/2009 9:39:33 PM
Hello Jerry,

> Yes, you either need a local mail server (warning - many email hosts
> will dump email from dynamic IPs because they are used for SPAM), or you
> need to connect to the email server you normally use.
>
> Unfortunately, most email servers require authentication (those which
> don't are know as "spam relays"), which isn't quite so easy to do with
> the mail() function. =A0It can be done, but not too easily.
>
> I would recommend you get the phpmailer class and use it - it makes
> emailing so much easier.
>
> --
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

did you notice the log entry:

[Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   3. mail
(*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*)
C:
\\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
referer: http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
[Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
exist: C:/Frans/Private/Projects/php/favicon.ico

why the parameters are uninitialized? is it because i don't have a
local smtp server?

thanks,
fasisi
0
3/17/2009 9:50:52 PM
babi gendut wrote:
> Hello Jerry,
> 
>> Yes, you either need a local mail server (warning - many email hosts
>> will dump email from dynamic IPs because they are used for SPAM), or you
>> need to connect to the email server you normally use.
>>
>> Unfortunately, most email servers require authentication (those which
>> don't are know as "spam relays"), which isn't quite so easy to do with
>> the mail() function.  It can be done, but not too easily.
>>
>> I would recommend you get the phpmailer class and use it - it makes
>> emailing so much easier.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
> 
> did you notice the log entry:
> 
> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   3. mail
> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*)
> C:
> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
> referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
> exist: C:/Frans/Private/Projects/php/favicon.ico
> 
> why the parameters are uninitialized? is it because i don't have a
> local smtp server?
> 
> thanks,
> fasisi

Don't worry about later messages until you get the first one fixed.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
0
jstucklex (14659)
3/18/2009 12:26:43 AM
On Mar 18, 7:26=A0am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> babi gendut wrote:
> > Hello Jerry,
>
> >> Yes, you either need a local mail server (warning - many email hosts
> >> will dump email from dynamic IPs because they are used for SPAM), or y=
ou
> >> need to connect to the email server you normally use.
>
> >> Unfortunately, most email servers require authentication (those which
> >> don't are know as "spam relays"), which isn't quite so easy to do with
> >> the mail() function. =A0It can be done, but not too easily.
>
> >> I would recommend you get the phpmailer class and use it - it makes
> >> emailing so much easier.
>
> >> --
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >> Remove the "x" from my email address
> >> Jerry Stuckle
> >> JDS Computer Training Corp.
> >> jstuck...@attglobal.net
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> > did you notice the log entry:
>
> > [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP =A0 3. mail
> > (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*)
> > C:
> > \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
> > referer:http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> > [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
> > exist: C:/Frans/Private/Projects/php/favicon.ico
>
> > why the parameters are uninitialized? is it because i don't have a
> > local smtp server?
>
> > thanks,
> >fasisi
>
> Don't worry about later messages until you get the first one fixed.
>
> --
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Hello jerry,

I have downloaded a phpmailer class and i have installed an smtp
server. When i tried send an email, I got error log said that:

[Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Warning:
fsockopen() [<a href=3D'function.fsockopen'>function.fsockopen</a>]:
unable to connect to localhost:25 (A connection attempt failed because
the connected party did not properly respond after a period of time,
or established connection failed because connected host has failed to
respond.\r\n) in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
\phpmailer\\class.smtp.php on line 89, referer:
http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
[Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Stack
trace:, referer: http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaa=
n=3D2

[Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   1. {main}
() C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2

[Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   2.
tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
\pekerjaan.php:123, referer: http://localhost/basin/pekerjaan.php?iduser=3D=
4&idpekerjaan=3D2

[Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   3.
phpmailer->Send() C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
\pekerjaan.inc:237, referer: http://localhost/basin/pekerjaan.php?iduser=3D=
4&idpekerjaan=3D2

[Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   4.
phpmailer->smtp_send($header =3D *uninitialized*, $body =3D
*uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
\phpmailer\\class.phpmailer.php:459, referer:
http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2

[Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   5. SMTP-
>Connect($host =3D *uninitialized*, $port =3D *uninitialized*, $tval =3D
*uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
\phpmailer\\class.phpmailer.php:678, referer:
http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2

[Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   6.
fsockopen(*uninitialized*, *uninitialized*, *uninitialized*,
*uninitialized*, *uninitialized*) C:\\Frans\\Private\\Projects\\php\
\basin\\genlibs\\phpmailer\\class.smtp.php:89, referer:
http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2

---
the problem is, the smtp server is set to listen to port 25 and the
server is running at the time of sending email.

i think the problem is on the smtp server. what do you suggest?

thank you,

fasisi
0
3/20/2009 4:33:47 PM
babi gendut wrote:
> On Mar 18, 7:26 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> babi gendut wrote:
>>> Hello Jerry,
>>>> Yes, you either need a local mail server (warning - many email hosts
>>>> will dump email from dynamic IPs because they are used for SPAM), or you
>>>> need to connect to the email server you normally use.
>>>> Unfortunately, most email servers require authentication (those which
>>>> don't are know as "spam relays"), which isn't quite so easy to do with
>>>> the mail() function.  It can be done, but not too easily.
>>>> I would recommend you get the phpmailer class and use it - it makes
>>>> emailing so much easier.
>>>> --
>>>> ==================
>>>> Remove the "x" from my email address
>>>> Jerry Stuckle
>>>> JDS Computer Training Corp.
>>>> jstuck...@attglobal.net
>>>> ==================
>>> did you notice the log entry:
>>> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   3. mail
>>> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*)
>>> C:
>>> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
>>> referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
>>> exist: C:/Frans/Private/Projects/php/favicon.ico
>>> why the parameters are uninitialized? is it because i don't have a
>>> local smtp server?
>>> thanks,
>>> fasisi
>> Don't worry about later messages until you get the first one fixed.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
> 
> Hello jerry,
> 
> I have downloaded a phpmailer class and i have installed an smtp
> server. When i tried send an email, I got error log said that:
> 
> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Warning:
> fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]:
> unable to connect to localhost:25 (A connection attempt failed because
> the connected party did not properly respond after a period of time,
> or established connection failed because connected host has failed to
> respond.\r\n) in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> \phpmailer\\class.smtp.php on line 89, referer:
> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Stack
> trace:, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   1. {main}
> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   2.
> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
> \pekerjaan.php:123, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   3.
> phpmailer->Send() C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> \pekerjaan.inc:237, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   4.
> phpmailer->smtp_send($header = *uninitialized*, $body =
> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> \phpmailer\\class.phpmailer.php:459, referer:
> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   5. SMTP-
>> Connect($host = *uninitialized*, $port = *uninitialized*, $tval =
> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> \phpmailer\\class.phpmailer.php:678, referer:
> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   6.
> fsockopen(*uninitialized*, *uninitialized*, *uninitialized*,
> *uninitialized*, *uninitialized*) C:\\Frans\\Private\\Projects\\php\
> \basin\\genlibs\\phpmailer\\class.smtp.php:89, referer:
> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> ---
> the problem is, the smtp server is set to listen to port 25 and the
> server is running at the time of sending email.
> 
> i think the problem is on the smtp server. what do you suggest?
> 
> thank you,
> 
> fasisi

It sounds like you don't have an MTA running on your system.  Which MTA 
are you running?  Are you sure it is configured correctly and running? 
Do you have a firewall which may be blocking it?

What happens if you go to a command line and enter

telnet localhost 25

?

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
0
jstucklex (14659)
3/20/2009 6:41:29 PM
On Mar 21, 1:41=A0am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> babi gendut wrote:
> > On Mar 18, 7:26 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> >> babi gendut wrote:
> >>> Hello Jerry,
> >>>> Yes, you either need a local mail server (warning - many email hosts
> >>>> will dump email from dynamic IPs because they are used for SPAM), or=
 you
> >>>> need to connect to the email server you normally use.
> >>>> Unfortunately, most email servers require authentication (those whic=
h
> >>>> don't are know as "spam relays"), which isn't quite so easy to do wi=
th
> >>>> the mail() function. =A0It can be done, but not too easily.
> >>>> I would recommend you get the phpmailer class and use it - it makes
> >>>> emailing so much easier.
> >>>> --
> >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>>> Remove the "x" from my email address
> >>>> Jerry Stuckle
> >>>> JDS Computer Training Corp.
> >>>> jstuck...@attglobal.net
> >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>> did you notice the log entry:
> >>> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP =A0 3. mail
> >>> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*)
> >>> C:
> >>> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
> >>> referer:http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=
=3D2
> >>> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
> >>> exist: C:/Frans/Private/Projects/php/favicon.ico
> >>> why the parameters are uninitialized? is it because i don't have a
> >>> local smtp server?
> >>> thanks,
> >>>fasisi
> >> Don't worry about later messages until you get the first one fixed.
>
> >> --
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >> Remove the "x" from my email address
> >> Jerry Stuckle
> >> JDS Computer Training Corp.
> >> jstuck...@attglobal.net
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> > Hello jerry,
>
> > I have downloaded a phpmailer class and i have installed an smtp
> > server. When i tried send an email, I got error log said that:
>
> > [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Warning:
> > fsockopen() [<a href=3D'function.fsockopen'>function.fsockopen</a>]:
> > unable to connect to localhost:25 (A connection attempt failed because
> > the connected party did not properly respond after a period of time,
> > or established connection failed because connected host has failed to
> > respond.\r\n) in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> > \phpmailer\\class.smtp.php on line 89, referer:
> >http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> > [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Stack
> > trace:, referer:http://localhost/basin/pekerjaan.php?iduser=3D4&idpeker=
jaan=3D2
>
> > [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 1. {main}
> > () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
> >http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
>
> > [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 2.
> > tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
> > \pekerjaan.php:123, referer:http://localhost/basin/pekerjaan.php?iduser=
=3D4&idpekerjaan=3D2
>
> > [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 3.
> > phpmailer->Send() C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> > \pekerjaan.inc:237, referer:http://localhost/basin/pekerjaan.php?iduser=
=3D4&idpekerjaan=3D2
>
> > [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 4.
> > phpmailer->smtp_send($header =3D *uninitialized*, $body =3D
> > *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> > \phpmailer\\class.phpmailer.php:459, referer:
> >http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
>
> > [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 5. SMTP-
> >> Connect($host =3D *uninitialized*, $port =3D *uninitialized*, $tval =
=3D
> > *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> > \phpmailer\\class.phpmailer.php:678, referer:
> >http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
>
> > [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 6.
> > fsockopen(*uninitialized*, *uninitialized*, *uninitialized*,
> > *uninitialized*, *uninitialized*) C:\\Frans\\Private\\Projects\\php\
> > \basin\\genlibs\\phpmailer\\class.smtp.php:89, referer:
> >http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
>
> > ---
> > the problem is, the smtp server is set to listen to port 25 and the
> > server is running at the time of sending email.
>
> > i think the problem is on the smtp server. what do you suggest?
>
> > thank you,
>
> >fasisi
>
> It sounds like you don't have an MTA running on your system. =A0Which MTA
> are you running? =A0Are you sure it is configured correctly and running?
> Do you have a firewall which may be blocking it?
>
> What happens if you go to a command line and enter
>
> telnet localhost 25
>
> ?
>
> --
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Hello Jerry,

what is MTA? and telnet said that it could not open connection to the
host on port 25. connect failed.

[out of topic]
this reminds me to other similar strange problem. i wrote a java class
and use a jdbc connector to sqlserver. the jdbc won't connect to
sqlserver on the same machine and telnet won't too. i call it strange
because a query analyser from other computer can communicate with the
sqlserver on my computer. so, the telnet can't make connection to its
host but other application can do it from other computer.
[/out of topic]

thanks,
fasisi
0
3/21/2009 2:35:24 AM
fasisi wrote:
> On Mar 21, 1:41 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> babi gendut wrote:
>>> On Mar 18, 7:26 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>> babi gendut wrote:
>>>>> Hello Jerry,
>>>>>> Yes, you either need a local mail server (warning - many email hosts
>>>>>> will dump email from dynamic IPs because they are used for SPAM), or you
>>>>>> need to connect to the email server you normally use.
>>>>>> Unfortunately, most email servers require authentication (those which
>>>>>> don't are know as "spam relays"), which isn't quite so easy to do with
>>>>>> the mail() function.  It can be done, but not too easily.
>>>>>> I would recommend you get the phpmailer class and use it - it makes
>>>>>> emailing so much easier.
>>>>>> --
>>>>>> ==================
>>>>>> Remove the "x" from my email address
>>>>>> Jerry Stuckle
>>>>>> JDS Computer Training Corp.
>>>>>> jstuck...@attglobal.net
>>>>>> ==================
>>>>> did you notice the log entry:
>>>>> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   3. mail
>>>>> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*)
>>>>> C:
>>>>> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
>>>>> referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
>>>>> exist: C:/Frans/Private/Projects/php/favicon.ico
>>>>> why the parameters are uninitialized? is it because i don't have a
>>>>> local smtp server?
>>>>> thanks,
>>>>> fasisi
>>>> Don't worry about later messages until you get the first one fixed.
>>>> --
>>>> ==================
>>>> Remove the "x" from my email address
>>>> Jerry Stuckle
>>>> JDS Computer Training Corp.
>>>> jstuck...@attglobal.net
>>>> ==================
>>> Hello jerry,
>>> I have downloaded a phpmailer class and i have installed an smtp
>>> server. When i tried send an email, I got error log said that:
>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Warning:
>>> fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]:
>>> unable to connect to localhost:25 (A connection attempt failed because
>>> the connected party did not properly respond after a period of time,
>>> or established connection failed because connected host has failed to
>>> respond.\r\n) in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>> \phpmailer\\class.smtp.php on line 89, referer:
>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Stack
>>> trace:, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   1. {main}
>>> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   2.
>>> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
>>> \pekerjaan.php:123, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   3.
>>> phpmailer->Send() C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>> \pekerjaan.inc:237, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   4.
>>> phpmailer->smtp_send($header = *uninitialized*, $body =
>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>> \phpmailer\\class.phpmailer.php:459, referer:
>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   5. SMTP-
>>>> Connect($host = *uninitialized*, $port = *uninitialized*, $tval =
>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>> \phpmailer\\class.phpmailer.php:678, referer:
>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   6.
>>> fsockopen(*uninitialized*, *uninitialized*, *uninitialized*,
>>> *uninitialized*, *uninitialized*) C:\\Frans\\Private\\Projects\\php\
>>> \basin\\genlibs\\phpmailer\\class.smtp.php:89, referer:
>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>> ---
>>> the problem is, the smtp server is set to listen to port 25 and the
>>> server is running at the time of sending email.
>>> i think the problem is on the smtp server. what do you suggest?
>>> thank you,
>>> fasisi
>> It sounds like you don't have an MTA running on your system.  Which MTA
>> are you running?  Are you sure it is configured correctly and running?
>> Do you have a firewall which may be blocking it?
>>
>> What happens if you go to a command line and enter
>>
>> telnet localhost 25
>>
>> ?
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
> 
> Hello Jerry,
> 
> what is MTA? and telnet said that it could not open connection to the
> host on port 25. connect failed.
> 
> [out of topic]
> this reminds me to other similar strange problem. i wrote a java class
> and use a jdbc connector to sqlserver. the jdbc won't connect to
> sqlserver on the same machine and telnet won't too. i call it strange
> because a query analyser from other computer can communicate with the
> sqlserver on my computer. so, the telnet can't make connection to its
> host but other application can do it from other computer.
> [/out of topic]
> 
> thanks,
> fasisi

An MTA is a Mail Transfer Agent - it's responsible for handling incoming 
and outgoing mail, usually with SMTP.  The messages and inability to 
connect to port 25 says either you don't have one running, or if it is, 
it is configured incorrectly.

One other possibility is that 'localhost' is configured incorrectly; it 
should always be directed to 127.0.0.1.  The fact your jbdc connector 
couldn't connect on the same server indicates that's a possibility; so 
is a firewall.

Until you can get your MTA problem straightened out, there isn't 
anything PHP can do.  I suggest you follow up with the support people 
for whichever MTA you said you had running.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
0
jstucklex (14659)
3/21/2009 2:47:16 AM
On Mar 21, 9:47=A0am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> fasisiwrote:
> > On Mar 21, 1:41 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> >> babi gendut wrote:
> >>> On Mar 18, 7:26 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> >>>> babi gendut wrote:
> >>>>> Hello Jerry,
> >>>>>> Yes, you either need a local mail server (warning - many email hos=
ts
> >>>>>> will dump email from dynamic IPs because they are used for SPAM), =
or you
> >>>>>> need to connect to the email server you normally use.
> >>>>>> Unfortunately, most email servers require authentication (those wh=
ich
> >>>>>> don't are know as "spam relays"), which isn't quite so easy to do =
with
> >>>>>> the mail() function. =A0It can be done, but not too easily.
> >>>>>> I would recommend you get the phpmailer class and use it - it make=
s
> >>>>>> emailing so much easier.
> >>>>>> --
> >>>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>>>>> Remove the "x" from my email address
> >>>>>> Jerry Stuckle
> >>>>>> JDS Computer Training Corp.
> >>>>>> jstuck...@attglobal.net
> >>>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>>>> did you notice the log entry:
> >>>>> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP =A0 3. ma=
il
> >>>>> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*=
)
> >>>>> C:
> >>>>> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
> >>>>> referer:http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=
=3D2
> >>>>> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
> >>>>> exist: C:/Frans/Private/Projects/php/favicon.ico
> >>>>> why the parameters are uninitialized? is it because i don't have a
> >>>>> local smtp server?
> >>>>> thanks,
> >>>>>fasisi
> >>>> Don't worry about later messages until you get the first one fixed.
> >>>> --
> >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>>> Remove the "x" from my email address
> >>>> Jerry Stuckle
> >>>> JDS Computer Training Corp.
> >>>> jstuck...@attglobal.net
> >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>> Hello jerry,
> >>> I have downloaded a phpmailer class and i have installed an smtp
> >>> server. When i tried send an email, I got error log said that:
> >>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Warning:
> >>> fsockopen() [<a href=3D'function.fsockopen'>function.fsockopen</a>]:
> >>> unable to connect to localhost:25 (A connection attempt failed becaus=
e
> >>> the connected party did not properly respond after a period of time,
> >>> or established connection failed because connected host has failed to
> >>> respond.\r\n) in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> >>> \phpmailer\\class.smtp.php on line 89, referer:
> >>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Stack
> >>> trace:, referer:http://localhost/basin/pekerjaan.php?iduser=3D4&idpek=
erjaan=3D2
> >>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 1. {mai=
n}
> >>> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer=
:
> >>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 2.
> >>> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
> >>> \pekerjaan.php:123, referer:http://localhost/basin/pekerjaan.php?idus=
er=3D4&idpekerjaan=3D2
> >>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 3.
> >>> phpmailer->Send() C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> >>> \pekerjaan.inc:237, referer:http://localhost/basin/pekerjaan.php?idus=
er=3D4&idpekerjaan=3D2
> >>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 4.
> >>> phpmailer->smtp_send($header =3D *uninitialized*, $body =3D
> >>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> >>> \phpmailer\\class.phpmailer.php:459, referer:
> >>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 5. SMTP=
-
> >>>> Connect($host =3D *uninitialized*, $port =3D *uninitialized*, $tval =
=3D
> >>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> >>> \phpmailer\\class.phpmailer.php:678, referer:
> >>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 6.
> >>> fsockopen(*uninitialized*, *uninitialized*, *uninitialized*,
> >>> *uninitialized*, *uninitialized*) C:\\Frans\\Private\\Projects\\php\
> >>> \basin\\genlibs\\phpmailer\\class.smtp.php:89, referer:
> >>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >>> ---
> >>> the problem is, the smtp server is set to listen to port 25 and the
> >>> server is running at the time of sending email.
> >>> i think the problem is on the smtp server. what do you suggest?
> >>> thank you,
> >>>fasisi
> >> It sounds like you don't have an MTA running on your system. =A0Which =
MTA
> >> are you running? =A0Are you sure it is configured correctly and runnin=
g?
> >> Do you have a firewall which may be blocking it?
>
> >> What happens if you go to a command line and enter
>
> >> telnet localhost 25
>
> >> ?
>
> >> --
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >> Remove the "x" from my email address
> >> Jerry Stuckle
> >> JDS Computer Training Corp.
> >> jstuck...@attglobal.net
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> > Hello Jerry,
>
> > what is MTA? and telnet said that it could not open connection to the
> > host on port 25. connect failed.
>
> > [out of topic]
> > this reminds me to other similar strange problem. i wrote a java class
> > and use a jdbc connector to sqlserver. the jdbc won't connect to
> > sqlserver on the same machine and telnet won't too. i call it strange
> > because a query analyser from other computer can communicate with the
> > sqlserver on my computer. so, the telnet can't make connection to its
> > host but other application can do it from other computer.
> > [/out of topic]
>
> > thanks,
> >fasisi
>
> An MTA is a Mail Transfer Agent - it's responsible for handling incoming
> and outgoing mail, usually with SMTP. =A0The messages and inability to
> connect to port 25 says either you don't have one running, or if it is,
> it is configured incorrectly.
>
> One other possibility is that 'localhost' is configured incorrectly; it
> should always be directed to 127.0.0.1. =A0The fact your jbdc connector
> couldn't connect on the same server indicates that's a possibility; so
> is a firewall.
>
> Until you can get your MTA problem straightened out, there isn't
> anything PHP can do. =A0I suggest you follow up with the support people
> for whichever MTA you said you had running.
>
> --
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

I prefer a free MTA. Do you know a good free MTA?

fasisi
0
3/21/2009 8:27:29 AM
fasisi wrote:
> On Mar 21, 9:47 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> fasisiwrote:
>>> On Mar 21, 1:41 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>> babi gendut wrote:
>>>>> On Mar 18, 7:26 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>>>> babi gendut wrote:
>>>>>>> Hello Jerry,
>>>>>>>> Yes, you either need a local mail server (warning - many email hosts
>>>>>>>> will dump email from dynamic IPs because they are used for SPAM), or you
>>>>>>>> need to connect to the email server you normally use.
>>>>>>>> Unfortunately, most email servers require authentication (those which
>>>>>>>> don't are know as "spam relays"), which isn't quite so easy to do with
>>>>>>>> the mail() function.  It can be done, but not too easily.
>>>>>>>> I would recommend you get the phpmailer class and use it - it makes
>>>>>>>> emailing so much easier.
>>>>>>>> --
>>>>>>>> ==================
>>>>>>>> Remove the "x" from my email address
>>>>>>>> Jerry Stuckle
>>>>>>>> JDS Computer Training Corp.
>>>>>>>> jstuck...@attglobal.net
>>>>>>>> ==================
>>>>>>> did you notice the log entry:
>>>>>>> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   3. mail
>>>>>>> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*)
>>>>>>> C:
>>>>>>> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
>>>>>>> referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
>>>>>>> exist: C:/Frans/Private/Projects/php/favicon.ico
>>>>>>> why the parameters are uninitialized? is it because i don't have a
>>>>>>> local smtp server?
>>>>>>> thanks,
>>>>>>> fasisi
>>>>>> Don't worry about later messages until you get the first one fixed.
>>>>>> --
>>>>>> ==================
>>>>>> Remove the "x" from my email address
>>>>>> Jerry Stuckle
>>>>>> JDS Computer Training Corp.
>>>>>> jstuck...@attglobal.net
>>>>>> ==================
>>>>> Hello jerry,
>>>>> I have downloaded a phpmailer class and i have installed an smtp
>>>>> server. When i tried send an email, I got error log said that:
>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Warning:
>>>>> fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]:
>>>>> unable to connect to localhost:25 (A connection attempt failed because
>>>>> the connected party did not properly respond after a period of time,
>>>>> or established connection failed because connected host has failed to
>>>>> respond.\r\n) in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>> \phpmailer\\class.smtp.php on line 89, referer:
>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Stack
>>>>> trace:, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   1. {main}
>>>>> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   2.
>>>>> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
>>>>> \pekerjaan.php:123, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   3.
>>>>> phpmailer->Send() C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>> \pekerjaan.inc:237, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   4.
>>>>> phpmailer->smtp_send($header = *uninitialized*, $body =
>>>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>> \phpmailer\\class.phpmailer.php:459, referer:
>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   5. SMTP-
>>>>>> Connect($host = *uninitialized*, $port = *uninitialized*, $tval =
>>>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>> \phpmailer\\class.phpmailer.php:678, referer:
>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   6.
>>>>> fsockopen(*uninitialized*, *uninitialized*, *uninitialized*,
>>>>> *uninitialized*, *uninitialized*) C:\\Frans\\Private\\Projects\\php\
>>>>> \basin\\genlibs\\phpmailer\\class.smtp.php:89, referer:
>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>> ---
>>>>> the problem is, the smtp server is set to listen to port 25 and the
>>>>> server is running at the time of sending email.
>>>>> i think the problem is on the smtp server. what do you suggest?
>>>>> thank you,
>>>>> fasisi
>>>> It sounds like you don't have an MTA running on your system.  Which MTA
>>>> are you running?  Are you sure it is configured correctly and running?
>>>> Do you have a firewall which may be blocking it?
>>>> What happens if you go to a command line and enter
>>>> telnet localhost 25
>>>> ?
>>>> --
>>>> ==================
>>>> Remove the "x" from my email address
>>>> Jerry Stuckle
>>>> JDS Computer Training Corp.
>>>> jstuck...@attglobal.net
>>>> ==================
>>> Hello Jerry,
>>> what is MTA? and telnet said that it could not open connection to the
>>> host on port 25. connect failed.
>>> [out of topic]
>>> this reminds me to other similar strange problem. i wrote a java class
>>> and use a jdbc connector to sqlserver. the jdbc won't connect to
>>> sqlserver on the same machine and telnet won't too. i call it strange
>>> because a query analyser from other computer can communicate with the
>>> sqlserver on my computer. so, the telnet can't make connection to its
>>> host but other application can do it from other computer.
>>> [/out of topic]
>>> thanks,
>>> fasisi
>> An MTA is a Mail Transfer Agent - it's responsible for handling incoming
>> and outgoing mail, usually with SMTP.  The messages and inability to
>> connect to port 25 says either you don't have one running, or if it is,
>> it is configured incorrectly.
>>
>> One other possibility is that 'localhost' is configured incorrectly; it
>> should always be directed to 127.0.0.1.  The fact your jbdc connector
>> couldn't connect on the same server indicates that's a possibility; so
>> is a firewall.
>>
>> Until you can get your MTA problem straightened out, there isn't
>> anything PHP can do.  I suggest you follow up with the support people
>> for whichever MTA you said you had running.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
> 
> I prefer a free MTA. Do you know a good free MTA?
> 
> fasisi

Check one of the mail groups.  They would have much better information 
on what's meets your needs.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
0
jstucklex (14659)
3/21/2009 12:44:30 PM
On Mar 21, 7:44=A0pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> fasisi wrote:
> > On Mar 21, 9:47 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> >> fasisiwrote:
> >>> On Mar 21, 1:41 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> >>>> babi gendut wrote:
> >>>>> On Mar 18, 7:26 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> >>>>>> babi gendut wrote:
> >>>>>>> Hello Jerry,
> >>>>>>>> Yes, you either need a local mail server (warning - many email h=
osts
> >>>>>>>> will dump email from dynamic IPs because they are used for SPAM)=
, or you
> >>>>>>>> need to connect to the email server you normally use.
> >>>>>>>> Unfortunately, most email servers require authentication (those =
which
> >>>>>>>> don't are know as "spam relays"), which isn't quite so easy to d=
o with
> >>>>>>>> the mail() function. =A0It can be done, but not too easily.
> >>>>>>>> I would recommend you get the phpmailer class and use it - it ma=
kes
> >>>>>>>> emailing so much easier.
> >>>>>>>> --
> >>>>>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>>>>>>> Remove the "x" from my email address
> >>>>>>>> Jerry Stuckle
> >>>>>>>> JDS Computer Training Corp.
> >>>>>>>> jstuck...@attglobal.net
> >>>>>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>>>>>> did you notice the log entry:
> >>>>>>> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP =A0 3. =
mail
> >>>>>>> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialize=
d*)
> >>>>>>> C:
> >>>>>>> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:22=
8,
> >>>>>>> referer:http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerja=
an=3D2
> >>>>>>> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does n=
ot
> >>>>>>> exist: C:/Frans/Private/Projects/php/favicon.ico
> >>>>>>> why the parameters are uninitialized? is it because i don't have =
a
> >>>>>>> local smtp server?
> >>>>>>> thanks,
> >>>>>>> fasisi
> >>>>>> Don't worry about later messages until you get the first one fixed=
..
> >>>>>> --
> >>>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>>>>> Remove the "x" from my email address
> >>>>>> Jerry Stuckle
> >>>>>> JDS Computer Training Corp.
> >>>>>> jstuck...@attglobal.net
> >>>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>>>> Hello jerry,
> >>>>> I have downloaded a phpmailer class and i have installed an smtp
> >>>>> server. When i tried send an email, I got error log said that:
> >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Warning:
> >>>>> fsockopen() [<a href=3D'function.fsockopen'>function.fsockopen</a>]=
:
> >>>>> unable to connect to localhost:25 (A connection attempt failed beca=
use
> >>>>> the connected party did not properly respond after a period of time=
,
> >>>>> or established connection failed because connected host has failed =
to
> >>>>> respond.\r\n) in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> >>>>> \phpmailer\\class.smtp.php on line 89, referer:
> >>>>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Stack
> >>>>> trace:, referer:http://localhost/basin/pekerjaan.php?iduser=3D4&idp=
ekerjaan=3D2
> >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 1. {m=
ain}
> >>>>> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, refer=
er:
> >>>>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 2.
> >>>>> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin=
\
> >>>>> \pekerjaan.php:123, referer:http://localhost/basin/pekerjaan.php?id=
user=3D4&idpekerjaan=3D2
> >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 3.
> >>>>> phpmailer->Send() C:\\Frans\\Private\\Projects\\php\\basin\\genlibs=
\
> >>>>> \pekerjaan.inc:237, referer:http://localhost/basin/pekerjaan.php?id=
user=3D4&idpekerjaan=3D2
> >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 4.
> >>>>> phpmailer->smtp_send($header =3D *uninitialized*, $body =3D
> >>>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> >>>>> \phpmailer\\class.phpmailer.php:459, referer:
> >>>>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 5. SM=
TP-
> >>>>>> Connect($host =3D *uninitialized*, $port =3D *uninitialized*, $tva=
l =3D
> >>>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
> >>>>> \phpmailer\\class.phpmailer.php:678, referer:
> >>>>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 6.
> >>>>> fsockopen(*uninitialized*, *uninitialized*, *uninitialized*,
> >>>>> *uninitialized*, *uninitialized*) C:\\Frans\\Private\\Projects\\php=
\
> >>>>> \basin\\genlibs\\phpmailer\\class.smtp.php:89, referer:
> >>>>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> >>>>> ---
> >>>>> the problem is, the smtp server is set to listen to port 25 and the
> >>>>> server is running at the time of sending email.
> >>>>> i think the problem is on the smtp server. what do you suggest?
> >>>>> thank you,
> >>>>> fasisi
> >>>> It sounds like you don't have an MTA running on your system. =A0Whic=
h MTA
> >>>> are you running? =A0Are you sure it is configured correctly and runn=
ing?
> >>>> Do you have a firewall which may be blocking it?
> >>>> What happens if you go to a command line and enter
> >>>> telnet localhost 25
> >>>> ?
> >>>> --
> >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>>> Remove the "x" from my email address
> >>>> Jerry Stuckle
> >>>> JDS Computer Training Corp.
> >>>> jstuck...@attglobal.net
> >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>> Hello Jerry,
> >>> what is MTA? and telnet said that it could not open connection to the
> >>> host on port 25. connect failed.
> >>> [out of topic]
> >>> this reminds me to other similar strange problem. i wrote a java clas=
s
> >>> and use a jdbc connector to sqlserver. the jdbc won't connect to
> >>> sqlserver on the same machine and telnet won't too. i call it strange
> >>> because a query analyser from other computer can communicate with the
> >>> sqlserver on my computer. so, the telnet can't make connection to its
> >>> host but other application can do it from other computer.
> >>> [/out of topic]
> >>> thanks,
> >>> fasisi
> >> An MTA is a Mail Transfer Agent - it's responsible for handling incomi=
ng
> >> and outgoing mail, usually with SMTP. =A0The messages and inability to
> >> connect to port 25 says either you don't have one running, or if it is=
,
> >> it is configured incorrectly.
>
> >> One other possibility is that 'localhost' is configured incorrectly; i=
t
> >> should always be directed to 127.0.0.1. =A0The fact your jbdc connecto=
r
> >> couldn't connect on the same server indicates that's a possibility; so
> >> is a firewall.
>
> >> Until you can get your MTA problem straightened out, there isn't
> >> anything PHP can do. =A0I suggest you follow up with the support peopl=
e
> >> for whichever MTA you said you had running.
>
> >> --
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >> Remove the "x" from my email address
> >> Jerry Stuckle
> >> JDS Computer Training Corp.
> >> jstuck...@attglobal.net
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> > I prefer a free MTA. Do you know a good free MTA?
>
> > fasisi
>
> Check one of the mail groups. =A0They would have much better information
> on what's meets your needs.
>
> --
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

how about you, jerry?

what MTA do you use? how do you configure it?

thank you,
fasisi
0
3/22/2009 7:51:31 AM
On Mar 22, 2:51=A0pm, fasisi <Frans.Indroy...@gmail.com> wrote:
> On Mar 21, 7:44=A0pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>
>
>
> > fasisi wrote:
> > > On Mar 21, 9:47 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> > >> fasisiwrote:
> > >>> On Mar 21, 1:41 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> > >>>> babi gendut wrote:
> > >>>>> On Mar 18, 7:26 am, Jerry Stuckle <jstuck...@attglobal.net> wrote=
:
> > >>>>>> babi gendut wrote:
> > >>>>>>> Hello Jerry,
> > >>>>>>>> Yes, you either need a local mail server (warning - many email=
 hosts
> > >>>>>>>> will dump email from dynamic IPs because they are used for SPA=
M), or you
> > >>>>>>>> need to connect to the email server you normally use.
> > >>>>>>>> Unfortunately, most email servers require authentication (thos=
e which
> > >>>>>>>> don't are know as "spam relays"), which isn't quite so easy to=
 do with
> > >>>>>>>> the mail() function. =A0It can be done, but not too easily.
> > >>>>>>>> I would recommend you get the phpmailer class and use it - it =
makes
> > >>>>>>>> emailing so much easier.
> > >>>>>>>> --
> > >>>>>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > >>>>>>>> Remove the "x" from my email address
> > >>>>>>>> Jerry Stuckle
> > >>>>>>>> JDS Computer Training Corp.
> > >>>>>>>> jstuck...@attglobal.net
> > >>>>>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > >>>>>>> did you notice the log entry:
> > >>>>>>> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP =A0 3=
.. mail
> > >>>>>>> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitiali=
zed*)
> > >>>>>>> C:
> > >>>>>>> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:=
228,
> > >>>>>>> referer:http://localhost/basin/pekerjaan.php?iduser=3D4&idpeker=
jaan=3D2
> > >>>>>>> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does=
 not
> > >>>>>>> exist: C:/Frans/Private/Projects/php/favicon.ico
> > >>>>>>> why the parameters are uninitialized? is it because i don't hav=
e a
> > >>>>>>> local smtp server?
> > >>>>>>> thanks,
> > >>>>>>> fasisi
> > >>>>>> Don't worry about later messages until you get the first one fix=
ed.
> > >>>>>> --
> > >>>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > >>>>>> Remove the "x" from my email address
> > >>>>>> Jerry Stuckle
> > >>>>>> JDS Computer Training Corp.
> > >>>>>> jstuck...@attglobal.net
> > >>>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > >>>>> Hello jerry,
> > >>>>> I have downloaded a phpmailer class and i have installed an smtp
> > >>>>> server. When i tried send an email, I got error log said that:
> > >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Warning=
:
> > >>>>> fsockopen() [<a href=3D'function.fsockopen'>function.fsockopen</a=
>]:
> > >>>>> unable to connect to localhost:25 (A connection attempt failed be=
cause
> > >>>>> the connected party did not properly respond after a period of ti=
me,
> > >>>>> or established connection failed because connected host has faile=
d to
> > >>>>> respond.\r\n) in C:\\Frans\\Private\\Projects\\php\\basin\\genlib=
s\
> > >>>>> \phpmailer\\class.smtp.php on line 89, referer:
> > >>>>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> > >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Stack
> > >>>>> trace:, referer:http://localhost/basin/pekerjaan.php?iduser=3D4&i=
dpekerjaan=3D2
> > >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 1. =
{main}
> > >>>>> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, ref=
erer:
> > >>>>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> > >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 2.
> > >>>>> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\bas=
in\
> > >>>>> \pekerjaan.php:123, referer:http://localhost/basin/pekerjaan.php?=
iduser=3D4&idpekerjaan=3D2
> > >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 3.
> > >>>>> phpmailer->Send() C:\\Frans\\Private\\Projects\\php\\basin\\genli=
bs\
> > >>>>> \pekerjaan.inc:237, referer:http://localhost/basin/pekerjaan.php?=
iduser=3D4&idpekerjaan=3D2
> > >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 4.
> > >>>>> phpmailer->smtp_send($header =3D *uninitialized*, $body =3D
> > >>>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlib=
s\
> > >>>>> \phpmailer\\class.phpmailer.php:459, referer:
> > >>>>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> > >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 5. =
SMTP-
> > >>>>>> Connect($host =3D *uninitialized*, $port =3D *uninitialized*, $t=
val =3D
> > >>>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlib=
s\
> > >>>>> \phpmailer\\class.phpmailer.php:678, referer:
> > >>>>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> > >>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP =A0 6.
> > >>>>> fsockopen(*uninitialized*, *uninitialized*, *uninitialized*,
> > >>>>> *uninitialized*, *uninitialized*) C:\\Frans\\Private\\Projects\\p=
hp\
> > >>>>> \basin\\genlibs\\phpmailer\\class.smtp.php:89, referer:
> > >>>>>http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
> > >>>>> ---
> > >>>>> the problem is, the smtp server is set to listen to port 25 and t=
he
> > >>>>> server is running at the time of sending email.
> > >>>>> i think the problem is on the smtp server. what do you suggest?
> > >>>>> thank you,
> > >>>>> fasisi
> > >>>> It sounds like you don't have an MTA running on your system. =A0Wh=
ich MTA
> > >>>> are you running? =A0Are you sure it is configured correctly and ru=
nning?
> > >>>> Do you have a firewall which may be blocking it?
> > >>>> What happens if you go to a command line and enter
> > >>>> telnet localhost 25
> > >>>> ?
> > >>>> --
> > >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > >>>> Remove the "x" from my email address
> > >>>> Jerry Stuckle
> > >>>> JDS Computer Training Corp.
> > >>>> jstuck...@attglobal.net
> > >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > >>> Hello Jerry,
> > >>> what is MTA? and telnet said that it could not open connection to t=
he
> > >>> host on port 25. connect failed.
> > >>> [out of topic]
> > >>> this reminds me to other similar strange problem. i wrote a java cl=
ass
> > >>> and use a jdbc connector to sqlserver. the jdbc won't connect to
> > >>> sqlserver on the same machine and telnet won't too. i call it stran=
ge
> > >>> because a query analyser from other computer can communicate with t=
he
> > >>> sqlserver on my computer. so, the telnet can't make connection to i=
ts
> > >>> host but other application can do it from other computer.
> > >>> [/out of topic]
> > >>> thanks,
> > >>> fasisi
> > >> An MTA is a Mail Transfer Agent - it's responsible for handling inco=
ming
> > >> and outgoing mail, usually with SMTP. =A0The messages and inability =
to
> > >> connect to port 25 says either you don't have one running, or if it =
is,
> > >> it is configured incorrectly.
>
> > >> One other possibility is that 'localhost' is configured incorrectly;=
 it
> > >> should always be directed to 127.0.0.1. =A0The fact your jbdc connec=
tor
> > >> couldn't connect on the same server indicates that's a possibility; =
so
> > >> is a firewall.
>
> > >> Until you can get your MTA problem straightened out, there isn't
> > >> anything PHP can do. =A0I suggest you follow up with the support peo=
ple
> > >> for whichever MTA you said you had running.
>
> > >> --
> > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > >> Remove the "x" from my email address
> > >> Jerry Stuckle
> > >> JDS Computer Training Corp.
> > >> jstuck...@attglobal.net
> > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> > > I prefer a free MTA. Do you know a good free MTA?
>
> > > fasisi
>
> > Check one of the mail groups. =A0They would have much better informatio=
n
> > on what's meets your needs.
>
> > --
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > Remove the "x" from my email address
> > Jerry Stuckle
> > JDS Computer Training Corp.
> > jstuck...@attglobal.net
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> how about you, jerry?
>
> what MTA do you use? how do you configure it?
>
> thank you,
> fasisi

jerry,

i found an smtp server. and i got this error log from apache:

-----
[Sun Mar 22 14:27:37 2009] [error] [client 127.0.0.1] PHP Warning:
mail() [<a href=3D'function.mail'>function.mail</a>]: SMTP server
response: 525 can not connect to &quot;yahoo.com&quot; ! in C:\\Frans\
\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc on line 230,
referer: http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2

[Sun Mar 22 14:27:37 2009] [error] [client 127.0.0.1] PHP Stack
trace:, referer: http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaa=
n=3D2

[Sun Mar 22 14:27:37 2009] [error] [client 127.0.0.1] PHP   1. {main}
() C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2

[Sun Mar 22 14:27:37 2009] [error] [client 127.0.0.1] PHP   2.
tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
\pekerjaan.php:123, referer: http://localhost/basin/pekerjaan.php?iduser=3D=
4&idpekerjaan=3D2

[Sun Mar 22 14:27:37 2009] [error] [client 127.0.0.1] PHP   3. mail
(*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*) C:
\\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:230,
referer: http://localhost/basin/pekerjaan.php?iduser=3D4&idpekerjaan=3D2
-----

it looks like the port 25 can be contacted. but the smpt server can't
connect to yahoo.com.

what this means?

thank you,
fasisi
0
3/22/2009 9:11:04 AM
fasisi wrote:
> On Mar 21, 7:44 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> fasisi wrote:
>>> On Mar 21, 9:47 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>> fasisiwrote:
>>>>> On Mar 21, 1:41 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>>>> babi gendut wrote:
>>>>>>> On Mar 18, 7:26 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>>>>>> babi gendut wrote:
>>>>>>>>> Hello Jerry,
>>>>>>>>>> Yes, you either need a local mail server (warning - many email hosts
>>>>>>>>>> will dump email from dynamic IPs because they are used for SPAM), or you
>>>>>>>>>> need to connect to the email server you normally use.
>>>>>>>>>> Unfortunately, most email servers require authentication (those which
>>>>>>>>>> don't are know as "spam relays"), which isn't quite so easy to do with
>>>>>>>>>> the mail() function.  It can be done, but not too easily.
>>>>>>>>>> I would recommend you get the phpmailer class and use it - it makes
>>>>>>>>>> emailing so much easier.
>>>>>>>>>> --
>>>>>>>>>> ==================
>>>>>>>>>> Remove the "x" from my email address
>>>>>>>>>> Jerry Stuckle
>>>>>>>>>> JDS Computer Training Corp.
>>>>>>>>>> jstuck...@attglobal.net
>>>>>>>>>> ==================
>>>>>>>>> did you notice the log entry:
>>>>>>>>> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   3. mail
>>>>>>>>> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*)
>>>>>>>>> C:
>>>>>>>>> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
>>>>>>>>> referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>>>> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
>>>>>>>>> exist: C:/Frans/Private/Projects/php/favicon.ico
>>>>>>>>> why the parameters are uninitialized? is it because i don't have a
>>>>>>>>> local smtp server?
>>>>>>>>> thanks,
>>>>>>>>> fasisi
>>>>>>>> Don't worry about later messages until you get the first one fixed.
>>>>>>>> --
>>>>>>>> ==================
>>>>>>>> Remove the "x" from my email address
>>>>>>>> Jerry Stuckle
>>>>>>>> JDS Computer Training Corp.
>>>>>>>> jstuck...@attglobal.net
>>>>>>>> ==================
>>>>>>> Hello jerry,
>>>>>>> I have downloaded a phpmailer class and i have installed an smtp
>>>>>>> server. When i tried send an email, I got error log said that:
>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Warning:
>>>>>>> fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]:
>>>>>>> unable to connect to localhost:25 (A connection attempt failed because
>>>>>>> the connected party did not properly respond after a period of time,
>>>>>>> or established connection failed because connected host has failed to
>>>>>>> respond.\r\n) in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>>>> \phpmailer\\class.smtp.php on line 89, referer:
>>>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Stack
>>>>>>> trace:, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   1. {main}
>>>>>>> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
>>>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   2.
>>>>>>> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
>>>>>>> \pekerjaan.php:123, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   3.
>>>>>>> phpmailer->Send() C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>>>> \pekerjaan.inc:237, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   4.
>>>>>>> phpmailer->smtp_send($header = *uninitialized*, $body =
>>>>>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>>>> \phpmailer\\class.phpmailer.php:459, referer:
>>>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   5. SMTP-
>>>>>>>> Connect($host = *uninitialized*, $port = *uninitialized*, $tval =
>>>>>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>>>> \phpmailer\\class.phpmailer.php:678, referer:
>>>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   6.
>>>>>>> fsockopen(*uninitialized*, *uninitialized*, *uninitialized*,
>>>>>>> *uninitialized*, *uninitialized*) C:\\Frans\\Private\\Projects\\php\
>>>>>>> \basin\\genlibs\\phpmailer\\class.smtp.php:89, referer:
>>>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>> ---
>>>>>>> the problem is, the smtp server is set to listen to port 25 and the
>>>>>>> server is running at the time of sending email.
>>>>>>> i think the problem is on the smtp server. what do you suggest?
>>>>>>> thank you,
>>>>>>> fasisi
>>>>>> It sounds like you don't have an MTA running on your system.  Which MTA
>>>>>> are you running?  Are you sure it is configured correctly and running?
>>>>>> Do you have a firewall which may be blocking it?
>>>>>> What happens if you go to a command line and enter
>>>>>> telnet localhost 25
>>>>>> ?
>>>>>> --
>>>>>> ==================
>>>>>> Remove the "x" from my email address
>>>>>> Jerry Stuckle
>>>>>> JDS Computer Training Corp.
>>>>>> jstuck...@attglobal.net
>>>>>> ==================
>>>>> Hello Jerry,
>>>>> what is MTA? and telnet said that it could not open connection to the
>>>>> host on port 25. connect failed.
>>>>> [out of topic]
>>>>> this reminds me to other similar strange problem. i wrote a java class
>>>>> and use a jdbc connector to sqlserver. the jdbc won't connect to
>>>>> sqlserver on the same machine and telnet won't too. i call it strange
>>>>> because a query analyser from other computer can communicate with the
>>>>> sqlserver on my computer. so, the telnet can't make connection to its
>>>>> host but other application can do it from other computer.
>>>>> [/out of topic]
>>>>> thanks,
>>>>> fasisi
>>>> An MTA is a Mail Transfer Agent - it's responsible for handling incoming
>>>> and outgoing mail, usually with SMTP.  The messages and inability to
>>>> connect to port 25 says either you don't have one running, or if it is,
>>>> it is configured incorrectly.
>>>> One other possibility is that 'localhost' is configured incorrectly; it
>>>> should always be directed to 127.0.0.1.  The fact your jbdc connector
>>>> couldn't connect on the same server indicates that's a possibility; so
>>>> is a firewall.
>>>> Until you can get your MTA problem straightened out, there isn't
>>>> anything PHP can do.  I suggest you follow up with the support people
>>>> for whichever MTA you said you had running.
>>>> --
>>>> ==================
>>>> Remove the "x" from my email address
>>>> Jerry Stuckle
>>>> JDS Computer Training Corp.
>>>> jstuck...@attglobal.net
>>>> ==================
>>> I prefer a free MTA. Do you know a good free MTA?
>>> fasisi
>> Check one of the mail groups.  They would have much better information
>> on what's meets your needs.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
> 
> how about you, jerry?
> 
> what MTA do you use? how do you configure it?
> 
> thank you,
> fasisi

Fasisi, that is off topic for this newsgroup, and what I use is not 
necessarily what you use.  Try one of the mail newsgroups.


-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
0
jstucklex (14659)
3/22/2009 11:50:31 AM
fasisi wrote:
> On Mar 22, 2:51 pm, fasisi <Frans.Indroy...@gmail.com> wrote:
>> On Mar 21, 7:44 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>
>>
>>
>>> fasisi wrote:
>>>> On Mar 21, 9:47 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>>> fasisiwrote:
>>>>>> On Mar 21, 1:41 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>>>>> babi gendut wrote:
>>>>>>>> On Mar 18, 7:26 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>>>>>>> babi gendut wrote:
>>>>>>>>>> Hello Jerry,
>>>>>>>>>>> Yes, you either need a local mail server (warning - many email hosts
>>>>>>>>>>> will dump email from dynamic IPs because they are used for SPAM), or you
>>>>>>>>>>> need to connect to the email server you normally use.
>>>>>>>>>>> Unfortunately, most email servers require authentication (those which
>>>>>>>>>>> don't are know as "spam relays"), which isn't quite so easy to do with
>>>>>>>>>>> the mail() function.  It can be done, but not too easily.
>>>>>>>>>>> I would recommend you get the phpmailer class and use it - it makes
>>>>>>>>>>> emailing so much easier.
>>>>>>>>>>> --
>>>>>>>>>>> ==================
>>>>>>>>>>> Remove the "x" from my email address
>>>>>>>>>>> Jerry Stuckle
>>>>>>>>>>> JDS Computer Training Corp.
>>>>>>>>>>> jstuck...@attglobal.net
>>>>>>>>>>> ==================
>>>>>>>>>> did you notice the log entry:
>>>>>>>>>> [Mon Mar 16 20:47:33 2009] [error] [client 127.0.0.1] PHP   3. mail
>>>>>>>>>> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*)
>>>>>>>>>> C:
>>>>>>>>>> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:228,
>>>>>>>>>> referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>>>>> [Mon Mar 16 20:47:36 2009] [error] [client 127.0.0.1] File does not
>>>>>>>>>> exist: C:/Frans/Private/Projects/php/favicon.ico
>>>>>>>>>> why the parameters are uninitialized? is it because i don't have a
>>>>>>>>>> local smtp server?
>>>>>>>>>> thanks,
>>>>>>>>>> fasisi
>>>>>>>>> Don't worry about later messages until you get the first one fixed.
>>>>>>>>> --
>>>>>>>>> ==================
>>>>>>>>> Remove the "x" from my email address
>>>>>>>>> Jerry Stuckle
>>>>>>>>> JDS Computer Training Corp.
>>>>>>>>> jstuck...@attglobal.net
>>>>>>>>> ==================
>>>>>>>> Hello jerry,
>>>>>>>> I have downloaded a phpmailer class and i have installed an smtp
>>>>>>>> server. When i tried send an email, I got error log said that:
>>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Warning:
>>>>>>>> fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]:
>>>>>>>> unable to connect to localhost:25 (A connection attempt failed because
>>>>>>>> the connected party did not properly respond after a period of time,
>>>>>>>> or established connection failed because connected host has failed to
>>>>>>>> respond.\r\n) in C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>>>>> \phpmailer\\class.smtp.php on line 89, referer:
>>>>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP Stack
>>>>>>>> trace:, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   1. {main}
>>>>>>>> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
>>>>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   2.
>>>>>>>> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
>>>>>>>> \pekerjaan.php:123, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   3.
>>>>>>>> phpmailer->Send() C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>>>>> \pekerjaan.inc:237, referer:http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   4.
>>>>>>>> phpmailer->smtp_send($header = *uninitialized*, $body =
>>>>>>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>>>>> \phpmailer\\class.phpmailer.php:459, referer:
>>>>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   5. SMTP-
>>>>>>>>> Connect($host = *uninitialized*, $port = *uninitialized*, $tval =
>>>>>>>> *uninitialized*) C:\\Frans\\Private\\Projects\\php\\basin\\genlibs\
>>>>>>>> \phpmailer\\class.phpmailer.php:678, referer:
>>>>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>>> [Fri Mar 20 22:37:25 2009] [error] [client 127.0.0.1] PHP   6.
>>>>>>>> fsockopen(*uninitialized*, *uninitialized*, *uninitialized*,
>>>>>>>> *uninitialized*, *uninitialized*) C:\\Frans\\Private\\Projects\\php\
>>>>>>>> \basin\\genlibs\\phpmailer\\class.smtp.php:89, referer:
>>>>>>>> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
>>>>>>>> ---
>>>>>>>> the problem is, the smtp server is set to listen to port 25 and the
>>>>>>>> server is running at the time of sending email.
>>>>>>>> i think the problem is on the smtp server. what do you suggest?
>>>>>>>> thank you,
>>>>>>>> fasisi
>>>>>>> It sounds like you don't have an MTA running on your system.  Which MTA
>>>>>>> are you running?  Are you sure it is configured correctly and running?
>>>>>>> Do you have a firewall which may be blocking it?
>>>>>>> What happens if you go to a command line and enter
>>>>>>> telnet localhost 25
>>>>>>> ?
>>>>>>> --
>>>>>>> ==================
>>>>>>> Remove the "x" from my email address
>>>>>>> Jerry Stuckle
>>>>>>> JDS Computer Training Corp.
>>>>>>> jstuck...@attglobal.net
>>>>>>> ==================
>>>>>> Hello Jerry,
>>>>>> what is MTA? and telnet said that it could not open connection to the
>>>>>> host on port 25. connect failed.
>>>>>> [out of topic]
>>>>>> this reminds me to other similar strange problem. i wrote a java class
>>>>>> and use a jdbc connector to sqlserver. the jdbc won't connect to
>>>>>> sqlserver on the same machine and telnet won't too. i call it strange
>>>>>> because a query analyser from other computer can communicate with the
>>>>>> sqlserver on my computer. so, the telnet can't make connection to its
>>>>>> host but other application can do it from other computer.
>>>>>> [/out of topic]
>>>>>> thanks,
>>>>>> fasisi
>>>>> An MTA is a Mail Transfer Agent - it's responsible for handling incoming
>>>>> and outgoing mail, usually with SMTP.  The messages and inability to
>>>>> connect to port 25 says either you don't have one running, or if it is,
>>>>> it is configured incorrectly.
>>>>> One other possibility is that 'localhost' is configured incorrectly; it
>>>>> should always be directed to 127.0.0.1.  The fact your jbdc connector
>>>>> couldn't connect on the same server indicates that's a possibility; so
>>>>> is a firewall.
>>>>> Until you can get your MTA problem straightened out, there isn't
>>>>> anything PHP can do.  I suggest you follow up with the support people
>>>>> for whichever MTA you said you had running.
>>>>> --
>>>>> ==================
>>>>> Remove the "x" from my email address
>>>>> Jerry Stuckle
>>>>> JDS Computer Training Corp.
>>>>> jstuck...@attglobal.net
>>>>> ==================
>>>> I prefer a free MTA. Do you know a good free MTA?
>>>> fasisi
>>> Check one of the mail groups.  They would have much better information
>>> on what's meets your needs.
>>> --
>>> ==================
>>> Remove the "x" from my email address
>>> Jerry Stuckle
>>> JDS Computer Training Corp.
>>> jstuck...@attglobal.net
>>> ==================
>> how about you, jerry?
>>
>> what MTA do you use? how do you configure it?
>>
>> thank you,
>> fasisi
> 
> jerry,
> 
> i found an smtp server. and i got this error log from apache:
> 
> -----
> [Sun Mar 22 14:27:37 2009] [error] [client 127.0.0.1] PHP Warning:
> mail() [<a href='function.mail'>function.mail</a>]: SMTP server
> response: 525 can not connect to &quot;yahoo.com&quot; ! in C:\\Frans\
> \Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc on line 230,
> referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Sun Mar 22 14:27:37 2009] [error] [client 127.0.0.1] PHP Stack
> trace:, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Sun Mar 22 14:27:37 2009] [error] [client 127.0.0.1] PHP   1. {main}
> () C:\\Frans\\Private\\Projects\\php\\basin\\pekerjaan.php:0, referer:
> http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Sun Mar 22 14:27:37 2009] [error] [client 127.0.0.1] PHP   2.
> tpekerjaan->minta_kontak() C:\\Frans\\Private\\Projects\\php\\basin\
> \pekerjaan.php:123, referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> 
> [Sun Mar 22 14:27:37 2009] [error] [client 127.0.0.1] PHP   3. mail
> (*uninitialized*, *uninitialized*, *uninitialized*, *uninitialized*) C:
> \\Frans\\Private\\Projects\\php\\basin\\genlibs\\pekerjaan.inc:230,
> referer: http://localhost/basin/pekerjaan.php?iduser=4&idpekerjaan=2
> -----
> 
> it looks like the port 25 can be contacted. but the smpt server can't
> connect to yahoo.com.
> 
> what this means?
> 
> thank you,
> fasisi

Which is not a PHP problems.  You need to be following up in the support 
group for the MTA you installed.

This is a PHP newsgroup - all about programming in PHP.  This is not the 
place to be asking about MTA's.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
0
jstucklex (14659)
3/22/2009 11:52:01 AM
Reply: