Mail Function Error
am 07.02.2009 12:53:02 von Alice Wei
--_5d04ecb0-878e-4454-9f4a-bb6852399f56_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I am one of those people whose mail server is not on the local machine. I=
t is on http://www.hotmail.com and the address is this email address. I cur=
rently constantly get this on my error log:=20
[07-Feb-2009 06:39:15] PHP Warning: mail() [func=
tion.mail]: Failed to connect to mailserver at "=3Blocalhost"=
=3B port 25=2C verify your "=3BSMTP"=3B and "=3Bsmtp_port"=
=3B setting in php.ini or use ini_set() in C:\apache\htdocs\Alice.Wei\proje=
cts\sbs\post.php on line 218
This is what is on my php.ini:
[mail function]
=3B For Win32 only.
SMTP =3D localhost
smtp_port =3D 25
=3B For Win32 only.
sendmail_from =3D ajwei@alumni.iu.edu
Could anyone please give me some pointers on what to put in my php.ini file=
to make this work?
Thanks in advance.
Alice
____________________________________________________________ _____
Search from any Web page with powerful protection. Get the FREE Windows Liv=
e Toolbar Today!
http://get.live.com/toolbar/overview=
--_5d04ecb0-878e-4454-9f4a-bb6852399f56_--
Re: Mail Function Error
am 07.02.2009 20:52:20 von Niel Archer
>
> Hi,
>
> I am one of those people whose mail server is not on the local machine. It is on http://www.hotmail.com and the address is this email address. I currently constantly get this on my error log:
>
> [07-Feb-2009 06:39:15] PHP Warning: mail() []: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\apache\htdocs\Alice.Wei\projects\sbs\post.php on line 218
>
> This is what is on my php.ini:
>
> [mail function]
> ; For Win32 only.
> SMTP = localhost
You must change this to the address of a valid SMTP (email) server you
have an account on. I do not belive hotmail supports SMTP acces (at
least not when I last looked several years ago).
> smtp_port = 25
>
> ; For Win32 only.
> sendmail_from = ajwei@alumni.iu.edu
>
> Could anyone please give me some pointers on what to put in my php.ini file to make this work?
> Thanks in advance.
>
> Alice
>
> ____________________________________________________________ _____
> Search from any Web page with powerful protection. Get the FREE Windows Live Toolbar Today!
> http://get.live.com/toolbar/overview
--
Niel Archer
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Error
am 08.02.2009 02:53:57 von Alice Wei
--_b4811668-8431-417c-acfc-f8e2f9309fde_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> > Hi,
> >=20
> > I am one of those people whose mail server is not on the local machin=
e. It is on http://www.hotmail.com and the address is this email address. I=
currently constantly get this on my error log:=20
> >=20
> > [07-Feb-2009 06:39:15] PHP Warning: mail() [=
function.mail]: Failed to connect to mailserver at "=3Blocalhost&qu=
ot=3B port 25=2C verify your "=3BSMTP"=3B and "=3Bsmtp_port&quo=
t=3B setting in php.ini or use ini_set() in C:\apache\htdocs\Alice.Wei\proj=
ects\sbs\post.php on line 218
> >=20
> > This is what is on my php.ini:
> >=20
> > [mail function]
> > =3B For Win32 only.
> > SMTP =3D localhost
>=20
> You must change this to the address of a valid SMTP (email) server you
> have an account on. I do not belive hotmail supports SMTP acces (at
> least not when I last looked several years ago).
>=20
> > smtp_port =3D 25
> >=20
> > =3B For Win32 only.
> > sendmail_from =3D ajwei@alumni.iu.edu
> >
Thanks for the explanation. Does this mean that this is not possible? How w=
ould I set up my own mail server. or if you could recommend any?
Thanks for your help.
Alice
=20
> > Could anyone please give me some pointers on what to put in my php.ini =
file to make this work?
> > Thanks in advance.
> >=20
> > Alice
> >=20
> > ____________________________________________________________ _____
> > Search from any Web page with powerful protection. Get the FREE Windows=
Live Toolbar Today!
> > http://get.live.com/toolbar/overview
>=20
> --
> Niel Archer
>=20
>=20
>=20
> --=20
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe=2C visit: http://www.php.net/unsub.php
>=20
____________________________________________________________ _____
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=3Dhmtag1&loc=3Dus=
--_b4811668-8431-417c-acfc-f8e2f9309fde_--
Re: Mail Function Error
am 08.02.2009 18:01:32 von Niel Archer
>
> > > Hi,
> > >
> > > I am one of those people whose mail server is not on the local machine. It is on http://www.hotmail.com and the address is this email address. I currently constantly get this on my error log:
> > >
> > > [07-Feb-2009 06:39:15] PHP Warning: mail() []: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\apache\htdocs\Alice.Wei\projects\sbs\post.php on line 218
> > >
> > > This is what is on my php.ini:
> > >
> > > [mail function]
> > > ; For Win32 only.
> > > SMTP = localhost
> >
> > You must change this to the address of a valid SMTP (email) server you
> > have an account on. I do not belive hotmail supports SMTP acces (at
> > least not when I last looked several years ago).
> >
> > > smtp_port = 25
> > >
> > > ; For Win32 only.
> > > sendmail_from = ajwei@alumni.iu.edu
> > >
>
> Thanks for the explanation. Does this mean that this is not possible? How would I set up my own mail server. or if you could recommend any?
No it's not impossible. If you have IIS running on your server that can
implement an SMTP server I believe. I'm not a user of IIS so can't
advise further on that.
You could also use a sendmail replacement for Windows, google "sendmail
windows" for dozens of possible versions.
Personally I use the PEAR Mail class with an external server.
> Thanks for your help.
>
> Alice
>
>
> > > Could anyone please give me some pointers on what to put in my php.ini file to make this work?
> > > Thanks in advance.
> > >
> > > Alice
> > >
> > > ____________________________________________________________ _____
> > > Search from any Web page with powerful protection. Get the FREE Windows Live Toolbar Today!
> > > http://get.live.com/toolbar/overview
> >
> > --
> > Niel Archer
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> ____________________________________________________________ _____
> Express yourself with gadgets on Windows Live Spaces
> http://discoverspaces.live.com?source=hmtag1&loc=us
--
Niel Archer
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Error
am 09.02.2009 13:27:43 von Alice Wei
--_322c4284-c990-4ccc-a423-70c24a608c1e_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Date: Sun=2C 8 Feb 2009 17:01:32 +0000
> From: not@chance.now
> To: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] Mail Function Error
>=20
> >=20
> > > > Hi,
> > > >=20
> > > > I am one of those people whose mail server is not on the local ma=
chine. It is on http://www.hotmail.com and the address is this email addres=
s. I currently constantly get this on my error log:=20
> > > >=20
> > > > [07-Feb-2009 06:39:15] PHP Warning: mail() [
il'>function.mail]: Failed to connect to mailserver at "=3Blocalhos=
t"=3B port 25=2C verify your "=3BSMTP"=3B and "=3Bsmtp_port=
"=3B setting in php.ini or use ini_set() in C:\apache\htdocs\Alice.Wei\=
projects\sbs\post.php on line 218
> > > >=20
> > > > This is what is on my php.ini:
> > > >=20
> > > > [mail function]
> > > > =3B For Win32 only.
> > > > SMTP =3D localhost
> > >=20
> > > You must change this to the address of a valid SMTP (email) server yo=
u
> > > have an account on. I do not belive hotmail supports SMTP acces (at
> > > least not when I last looked several years ago).
> > >=20
> > > > smtp_port =3D 25
> > > >=20
> > > > =3B For Win32 only.
> > > > sendmail_from =3D ajwei@alumni.iu.edu
> > > >
> >=20
> > Thanks for the explanation. Does this mean that this is not possible? H=
ow would I set up my own mail server. or if you could recommend any?
> =20
> No it's not impossible. If you have IIS running on your server that can
> implement an SMTP server I believe. I'm not a user of IIS so can't
> advise further on that.
>=20
> You could also use a sendmail replacement for Windows=2C google "sendmail
> windows" for dozens of possible versions.
No=2C I use apache=2C and not IIS=2C but I think I will give your suggest=
ion a shot.=20
>=20
> Personally I use the PEAR Mail class with an external server.
>=20
>=20
> > Thanks for your help.
> >=20
> > Alice
> >=20
> > =20
> > > > Could anyone please give me some pointers on what to put in my php.=
ini file to make this work?
> > > > Thanks in advance.
> > > >=20
> > > > Alice
> > > >=20
> > > > ____________________________________________________________ _____
> > > > Search from any Web page with powerful protection. Get the FREE Win=
dows Live Toolbar Today!
> > > > http://get.live.com/toolbar/overview
> > >=20
> > > --
> > > Niel Archer
> > >=20
> > >=20
> > >=20
> > > --=20
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe=2C visit: http://www.php.net/unsub.php
> > >=20
> >=20
> > ____________________________________________________________ _____
> > Express yourself with gadgets on Windows Live Spaces
> > http://discoverspaces.live.com?source=3Dhmtag1&loc=3Dus
>=20
> --
> Niel Archer
>=20
>=20
>=20
> --=20
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe=2C visit: http://www.php.net/unsub.php
>=20
____________________________________________________________ _____
Search from any Web page with powerful protection. Get the FREE Windows Liv=
e Toolbar Today!
http://get.live.com/toolbar/overview=
--_322c4284-c990-4ccc-a423-70c24a608c1e_--