php mail function issue.

php mail function issue.

am 11.12.2007 06:50:35 von vikas batra

--0-1275784835-1197352235=:47959
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

=0A Hi, I am trying to send mail using mail function of php, it's work=
ing fine on one server and it fails to send mails on other server.On first=
server is showing message "Mail Sent Successfully" and on other it is show=
ing "Mail Sending Failed".In my local system it is also working fine,this c=
ode was working fine some days ago but suddenly it stopped working,this pro=
blem might be due to some server configuration changes, but i am not gettin=
g what exactly is the issue , so that i can resolve it.what might be the re=
asons?Any body can explain me....... ])){=0A $to =3D $_POST['email'];=0A $subject =3D $_POST['subject'];=
=0A $message =3D $_POST['message'];=0A $headers =3D 'MIME-Version: 1=
..0' . "\r\n";=0A $headers .=3D 'Content-type: text/html; charset=3Diso-8=
859-1' . "\r\n";=0A $headers .=3D 'From: SCONNECT >' . "\r\n";=0A $headers .=3D 'Cc: kiran.jha@softwarefolks.com' . "\r\n"=
; if(mail ($to, $subject, $message, $headers )){=0A $msg =
=3D "Mail Sent Successfully";=0A }else {=0A $msg =3D "Mail Sendin=
g Failed";=0A }=0A}=0A?> =0A =0A =0A =<br /> Mail test from script=0A =0A =0A y>=0A

d #000">=0A =0A st' action=3D'mailtest.php'>=0A =
=0A =0A =0A =0A =
=0A =0A }else{?>=0A =0A }?>=0A
enter'>

This page is used to test the mail from script.

Email: />
Subject: t' type=3D'text' />
Message: rea name=3D'message' rows=3D'15' cols=3D'40'>
=3D'Send Mail' name=3D'send'/>
=0A =0A =0ARegards.=0AVikas Ba=
tra Save all your chat conversations. Find them onli=
ne at http://in.messenger.yahoo.com/webmessengerpromo.php
--0-1275784835-1197352235=:47959--