Jump to content

help on smtp error


pixeltrace

Recommended Posts

guys,

 

what does this mean?

Warning: mail() [function.mail]: SMTP server response: 503 5.5.2 Need Rcpt command. in c:\hosting\webhost4life\member\diorgrace\forgotpass.php on line 90

 

i dont know what this error mean and this came out from my reset password page

below is the code for my reset password page

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>:: JobHiRings - Forgot Password ::</title>
<style type="text/css">
<!--
body {
background-image: url(images/main/bg.gif);
}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="776" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="3" valign="top"><img src="images/main/top.gif" width="776" height="6"></td>
      </tr>
      <tr>
        <td width="6" align="left" valign="top" background="images/main/left.gif"><img src="images/main/left.gif" width="6" height="14"></td>
        <td width="764" bgcolor="#FFFFFF"><table width="764" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="764" height="346">
              <param name="movie" value="../new/flash/main.swf">
              <param name="quality" value="high">
              <embed src="../new/flash/main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="764" height="346"></embed>
            </object></td>
          </tr>
          
          <tr>
            <td height="62" align="left" valign="top" bgcolor="#FFFFFF"><table width="764" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="181" valign="top" background="images/main/bgbar.gif"><img src="images/main/bgbar.gif" height="50"></td>
                <td width="344" valign="top" background="images/main/bgbar.gif"> </td>
                <td width="239" background="images/main/bgbar.gif"> </td>
              </tr>
              <tr>
                <td colspan="3" align="center" valign="top"><br><table width="416" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td colspan="3" valign="top" bgcolor="#B30110"><img src="images/spacer.gif" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="left" bgcolor="#B30110" width="1"><img src="images/spacer.gif" width="1" height="1" /></td>
          <td width="414" align="center"><br>
            <h1 class="text7">Forgot Password</h1>
<span class="text8">You can reset your password here and send a copy to your email address.<br>
Simply 
enter your email address below to have your password reset.</span><br>
<br>
<?php session_start();
include 'admean/db_connect.php';
$query="SELECT email, password FROM applicant where email='$email'";
$result=mysql_query($query);

while($rec=mysql_fetch_assoc($result)){
$mail=$_SESSION['email']=$rec['email'];
}

if(mysql_num_rows($result)==1){

$password2 = $password;
$password1=md5($password);

if($_GET['cmd']=="update"){

$query2="UPDATE applicant set `password`='$password1' where
`email` = '$email' ";

$result=mysql_query($query2)or die(mysql_error());


$Message = "";
$Message .= "Hello\n";
$Message .= "This is a password change request\n";
$Message .= "that you made from JobHiRings\n";
$Message .= "\n\n";
$Message .= "please keep this new password in a safe place\n";
$Message .= "----------------------------\n";
$Message .="Your new password is:" .$password2."\n";
$Message .= "\n\n";


$Header = "[email protected]";
$To = "$email";
$Subject = "Your New Password"; 

mail($To,$Subject,$Message,"From: $Header");

echo " <div align='center'><b class='text3'>Thank you password changed!<br>
We have sent a copy to your email address!<div></b><br><br><a href='index.php' class='link2'>Please try to login now</a><br><br></td>
<td align='right' bgcolor='#B30110' width='1'><img src='images/main/spacer.gif' width='1' height='1' /></td>
</tr><tr>
<td colspan='3' valign='top' bgcolor='#B30110'><img src='images/main/spacer.gif' width='1' height='1' /></td>
</tr></table><br></td></tr></table></td></tr><tr>
<td colspan='2' valign='top' style='background:url(images/main/footer.gif); background-repeat:no-repeat'>"; ?>
<? include 'footer.php'; ?>
<? echo "</td></tr></table></td>
<td width='6' background='images/main/right.gif' align='right'><img src='images/main/right.gif' width='6' height='3'></td>
</tr><tr>
<td colspan='3' valign='bottom'><img src='images/main/bottom.gif' width='776' height='8'></td>
</tr></table></td></tr></table></body></html>";
exit;
}

if($_GET['cmd']=="pro"){

echo"<div><form action='forgotpass.php?cmd=update ' method='POST'>
<b class='text3'>Please provide a new password</b><br><br>
<input type='password' name='password' maxlength='30'>
<br>
<br>
<input type='submit' value='New Password' class='button1'>
</form><br></td>
<td align='right' bgcolor='#B30110' width='1'><img src='images/main/spacer.gif' width='1' height='1' /></td>
</tr><tr>
<td colspan='3' valign='top' bgcolor='#B30110'><img src='images/main/spacer.gif' width='1' height='1' /></td>
</tr></table><br></td></tr></table></td></tr><tr>
<td colspan='2' valign='top' style='background:url(images/main/footer.gif); background-repeat:no-repeat'>"; ?>
<? include 'footer.php'; ?>
<? echo "</td></tr></table></td>
<td width='6' background='images/main/right.gif' align='right'><img src='images/main/right.gif' width='6' height='3'></td>
</tr><tr>
<td colspan='3' valign='bottom'><img src='images/main/bottom.gif' width='776' height='8'></td>
</tr></table></td></tr></table></body></html>";
exit;
}
}
?>


<form action="forgotpass.php?cmd=pro" method="POST">
<b class="text3">Email Address:</b> <input name="email" type="text" class="field3" maxlength="30">
 
<input type="submit" class="button1" value="Get New Password">
</form><br></td>
                      <td align="right" bgcolor="#B30110" width="1"><img src="images/spacer.gif" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td colspan="3" valign="top" bgcolor="#B30110"><img src="images/spacer.gif" width="1" height="1" /></td>
                    </tr>
                  </table><br></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top" style="background:url(images/main/footer.gif); background-repeat:no-repeat">
		<? include 'footer.php'; ?>			</td>
          </tr>
        </table></td>
        <td width="6" background="images/main/right.gif" align="right"><img src="images/main/right.gif" width="6" height="3"></td>
      </tr>
      <tr>
        <td colspan="3" valign="bottom"><img src="images/main/bottom.gif" width="776" height="8"></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

 

 

hope you could help me fix this.

 

thanks!

Link to comment
https://forums.phpfreaks.com/topic/48779-help-on-smtp-error/
Share on other sites

its actually wierd, because i have to pages with a reset password page.

the 1st one is not working and its getting this error, while the 2nd one

its working fine and dont have the error.

 

this is the code of my 1st page

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>:: JobHiRings - Forgot Password ::</title>
<style type="text/css">
<!--
body {
background-image: url(images/main/bg.gif);
}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="776" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="3" valign="top"><img src="images/main/top.gif" width="776" height="6"></td>
      </tr>
      <tr>
        <td width="6" align="left" valign="top" background="images/main/left.gif"><img src="images/main/left.gif" width="6" height="14"></td>
        <td width="764" bgcolor="#FFFFFF"><table width="764" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="764" height="346">
              <param name="movie" value="flash/main.swf">
              <param name="quality" value="high">
              <embed src="flash/main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="764" height="346"></embed>
            </object></td>
          </tr>
          
          <tr>
            <td height="62" align="left" valign="top" bgcolor="#FFFFFF"><table width="764" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="181" valign="top" background="images/main/bgbar.gif"><img src="images/main/bgbar.gif" height="50"></td>
                <td width="344" valign="top" background="images/main/bgbar.gif"> </td>
                <td width="239" background="images/main/bgbar.gif"> </td>
              </tr>
              <tr>
                <td colspan="3" align="center" valign="top"><br><table width="416" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td colspan="3" valign="top" bgcolor="#B30110"><img src="images/spacer.gif" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="left" bgcolor="#B30110" width="1"><img src="images/spacer.gif" width="1" height="1" /></td>
          <td width="414" align="center"><br>
            <h1 class="text7">Forgot Password</h1>
<span class="text8">You can reset your password here and send a copy to your email address.<br>
Simply 
enter your email address below to have your password reset.</span><br>
<br>
<?php
include 'admean/db_connect.php';
$query="SELECT email, password FROM applicant where email='$email'";
$result=mysql_query($query);

while($rec=mysql_fetch_assoc($result)){
$mail=$_POST['email']=$rec['email'];
}

if(mysql_num_rows($result)==1){

$password2 = $password;
$password1=md5($password);

if($_GET['cmd']=="update"){

$query2="UPDATE applicant set `password`='$password1' where
`email` = '$email' ";

$result=mysql_query($query2)or die(mysql_error());


$Message = "";
$Message .= "Hello\n";
$Message .= "This is a password change request\n";
$Message .= "that you made from JobHiRings\n";
$Message .= "\n\n";
$Message .= "please keep this new password in a safe place\n";
$Message .= "----------------------------\n";
$Message .="Your new password is:" .$password2."\n";
$Message .= "\n\n";


$Header = "[email protected]";
$To = "$email";
$Subject = "Your New Password"; 

mail($To,$Subject,$Message,"From: $Header");

echo " <div align='center'><b class='text3'>Thank you password changed!<br>
We have sent a copy to your email address!<div></b><br><br><a href='employer.php' class='link2'>Please try to login now</a><br><br></td>
<td align='right' bgcolor='#B30110' width='1'><img src='images/main/spacer.gif' width='1' height='1' /></td>
</tr><tr>
<td colspan='3' valign='top' bgcolor='#B30110'><img src='images/main/spacer.gif' width='1' height='1' /></td>
</tr></table><br></td></tr></table></td></tr><tr>
<td colspan='2' valign='top' style='background:url(images/main/footer.gif); background-repeat:no-repeat'>"; ?>
<? include 'footer.php'; ?>
<? echo "</td></tr></table></td>
<td width='6' background='images/main/right.gif' align='right'><img src='images/main/right.gif' width='6' height='3'></td>
</tr><tr>
<td colspan='3' valign='bottom'><img src='images/main/bottom.gif' width='776' height='8'></td>
</tr></table></td></tr></table></body></html>";
exit;
}

if($_GET['cmd']=="pro"){

echo"<div><form action='forgotpass.php?cmd=update ' method='POST'>
<b class='text3'>Please provide a new password</b><br><br>
<input type='password' name='password' maxlength='30'>
<br>
<br>
<input type='submit' value='New Password' class='button1'>
</form><br></td>
<td align='right' bgcolor='#B30110' width='1'><img src='images/main/spacer.gif' width='1' height='1' /></td>
</tr><tr>
<td colspan='3' valign='top' bgcolor='#B30110'><img src='images/main/spacer.gif' width='1' height='1' /></td>
</tr></table><br></td></tr></table></td></tr><tr>
<td colspan='2' valign='top' style='background:url(images/main/footer.gif); background-repeat:no-repeat'>"; ?>
<? include 'footer.php'; ?>
<? echo "</td></tr></table></td>
<td width='6' background='images/main/right.gif' align='right'><img src='images/main/right.gif' width='6' height='3'></td>
</tr><tr>
<td colspan='3' valign='bottom'><img src='images/main/bottom.gif' width='776' height='8'></td>
</tr></table></td></tr></table></body></html>";
exit;
}
}
?>


<form action="forgotpass.php?cmd=pro" method="POST">
<b class="text3">Email Address:</b> <input name="email" type="text" class="field3" maxlength="30">
 
<input type="submit" class="button1" value="Get New Password">
</form><br></td>
                      <td align="right" bgcolor="#B30110" width="1"><img src="images/spacer.gif" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td colspan="3" valign="top" bgcolor="#B30110"><img src="images/spacer.gif" width="1" height="1" /></td>
                    </tr>
                  </table><br></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top" style="background:url(images/main/footer.gif); background-repeat:no-repeat">
		<? include 'footer.php'; ?>			</td>
          </tr>
        </table></td>
        <td width="6" background="images/main/right.gif" align="right"><img src="images/main/right.gif" width="6" height="3"></td>
      </tr>
      <tr>
        <td colspan="3" valign="bottom"><img src="images/main/bottom.gif" width="776" height="8"></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

 

and this is the code for my 2nd one

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>:: JobHiRings - Forgot Password ::</title>
<style type="text/css">
<!--
body {
background-image: url(../images/main/bg.gif);
}
-->
</style>
<link href="../css.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="776" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="3" valign="top"><img src="../images/main/top.gif" width="776" height="6"></td>
      </tr>
      <tr>
        <td width="6" align="left" valign="top" background="../images/main/left.gif"><img src="../images/main/left.gif" width="6" height="14"></td>
        <td width="764" bgcolor="#FFFFFF"><table width="764" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="764" height="346">
              <param name="movie" value="flash/main.swf">
              <param name="quality" value="high">
              <embed src="flash/main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="764" height="346"></embed>
            </object></td>
          </tr>
          
          <tr>
            <td height="62" align="left" valign="top" bgcolor="#FFFFFF"><table width="764" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="181" valign="top" background="../images/main/bgbar.gif"><img src="../images/main/bgbar.gif" height="50"></td>
                <td width="344" valign="top" background="../images/main/bgbar.gif"> </td>
                <td width="239" background="../images/main/bgbar.gif"> </td>
              </tr>
              <tr>
                <td colspan="3" align="center" valign="top"><br><table width="416" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td colspan="3" valign="top" bgcolor="#B30110"><img src="../images/spacer.gif" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="left" bgcolor="#B30110" width="1"><img src="../images/spacer.gif" width="1" height="1" /></td>
          <td width="414" align="center"><br>
            <h1 class="text7">Forgot Password</h1>
<span class="text8">You can reset your password here and send a copy to your email address.<br>
Simply 
enter your email address below to have your password reset.</span><br>
<br>
<?php
include '../admean/db_connect.php';
$query="SELECT email, password FROM applicant where email='$email'";
$result=mysql_query($query);

while($rec=mysql_fetch_assoc($result)){
$mail=$_POST['email']=$rec['email'];
}

if(mysql_num_rows($result)==1){

$password2 = $password;
$password1=md5($password);

if($_GET['cmd']=="update"){

$query2="UPDATE applicant set `password`='$password1' where
`email` = '$email' ";

$result=mysql_query($query2)or die(mysql_error());


$Message = "";
$Message .= "Hello\n";
$Message .= "This is a password change request\n";
$Message .= "that you made from JobHiRings\n";
$Message .= "\n\n";
$Message .= "please keep this new password in a safe place\n";
$Message .= "----------------------------\n";
$Message .="Your new password is:" .$password2."\n";
$Message .= "\n\n";


$Header = "[email protected]";
$To = "$email";
$Subject = "Your New Password"; 

mail($To,$Subject,$Message,"From: $Header");

echo " <div align='center'><b class='text3'>Thank you password changed!<br>
We have sent a copy to your email address!<div></b><br><br><a href='../index.php' class='link2'>Please try to login now</a><br><br></td>
<td align='right' bgcolor='#B30110' width='1'><img src='../images/main/spacer.gif' width='1' height='1' /></td>
</tr><tr>
<td colspan='3' valign='top' bgcolor='#B30110'><img src='../images/main/spacer.gif' width='1' height='1' /></td>
</tr></table><br></td></tr></table></td></tr><tr>
<td colspan='2' valign='top' style='background:url(../images/main/footer.gif); background-repeat:no-repeat'>"; ?>
<? include '../footer.php'; ?>
<? echo "</td></tr></table></td>
<td width='6' background='../images/main/right.gif' align='right'><img src='../images/main/right.gif' width='6' height='3'></td>
</tr><tr>
<td colspan='3' valign='bottom'><img src='../images/main/bottom.gif' width='776' height='8'></td>
</tr></table></td></tr></table></body></html>";
exit;
}

if($_GET['cmd']=="pro"){

echo"<div><form action='forgotpass.php?cmd=update ' method='POST'>
<b class='text3'>Please provide a new password</b><br><br>
<input type='password' name='password' maxlength='30'>
<br>
<br>
<input type='submit' value='New Password' class='button1'>
</form><br></td>
<td align='right' bgcolor='#B30110' width='1'><img src='../images/main/spacer.gif' width='1' height='1' /></td>
</tr><tr>
<td colspan='3' valign='top' bgcolor='#B30110'><img src='../images/main/spacer.gif' width='1' height='1' /></td>
</tr></table><br></td></tr></table></td></tr><tr>
<td colspan='2' valign='top' style='background:url(../images/main/footer.gif); background-repeat:no-repeat'>"; ?>
<? include '../footer.php'; ?>
<? echo "</td></tr></table></td>
<td width='6' background='../images/main/right.gif' align='right'><img src='../images/main/right.gif' width='6' height='3'></td>
</tr><tr>
<td colspan='3' valign='bottom'><img src='../images/main/bottom.gif' width='776' height='8'></td>
</tr></table></td></tr></table></body></html>";
exit;
}
}
?>


<form action="forgotpass.php?cmd=pro" method="POST">
<b class="text3">Email Address:</b> <input name="email" type="text" class="field3" maxlength="30">
 
<input type="submit" class="button1" value="Get New Password">
</form><br></td>
                      <td align="right" bgcolor="#B30110" width="1"><img src="../images/spacer.gif" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td colspan="3" valign="top" bgcolor="#B30110"><img src="../images/spacer.gif" width="1" height="1" /></td>
                    </tr>
                  </table><br></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top" style="background:url(../images/main/footer.gif); background-repeat:no-repeat">
		<? include '../footer.php'; ?>			</td>
          </tr>
        </table></td>
        <td width="6" background="../images/main/right.gif" align="right"><img src="../images/main/right.gif" width="6" height="3"></td>
      </tr>
      <tr>
        <td colspan="3" valign="bottom"><img src="../images/main/bottom.gif" width="776" height="8"></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

 

notice that the links of the images are the only one that was changed, the table name of the database and the location

of my db_connect.php

 

other than that, everything is the same.

 

hope you could help me trace and solve the problem.

thanks!

Link to comment
https://forums.phpfreaks.com/topic/48779-help-on-smtp-error/#findComment-239166
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.