php mail function issue.

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

=0A Hi,=0A=0AI 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=0A<?php=0Aif(isset($_REQUEST['send'=
])){=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 <sconnect [at] saviance.com=
>' . "\r\n";=0A $headers .=3D 'Cc: kiran.jha [at] softwarefolks.com' . "\r\n"=
;=0A=0A 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<html>=0A <head>=0A <title>=0A =
Mail test from script=0A </title>=0A </head>=0A <bod=
y>=0A <table width=3D'60%' align=3D'center' style=3D"border:1px soli=
d #000">=0A <?php if($msg =3D=3D ""){?>=0A <form method=3D'po=
st' action=3D'mailtest.php'>=0A <tr><td colspan=3D'2' align=3D'c=
enter'><h4>This page is used to test the mail from script.</h4></td></tr>=
=0A <tr><td>Email: </td><td> <input name=3D'email' type=3D'text'=
/></td></tr>=0A <tr><td>Subject: </td><td><input name=3D'subjec=
t' type=3D'text' /></td></tr>=0A <tr><td>Message:</td><td><texta=
rea name=3D'message' rows=3D'15' cols=3D'40'></textarea></td></tr>=0A =
<tr><td colspan=3D'2' align=3D'center'> <input type=3D'submit' value=
=3D'Send Mail' name=3D'send'/></td></tr>=0A </form>=0A <?php =
}else{?>=0A <tr><td><?php echo $msg;?></td></tr>=0A <?php=
}?>=0A </table>=0A </body>=0A</html>=0A=0A=0ARegards.=0AVikas Ba=
tra=0A=0A=0A=0A=0A=0A Save all your chat conversations. Find them onli=
ne at http://in.messenger.yahoo.com/webmessengerpromo.php
--0-1275784835-1197352235=:47959--
vikas batra [ Di, 11 Dezember 2007 06:50 ] [ ID #1888719 ]
PHP » gmane.comp.php.windows » php mail function issue.

Vorheriges Thema: Are there free IDEs for PHP?
Nächstes Thema: Just to let you know it's now all working