Question : Forgot password script

I am looking for a simple forgot your password script which will email a ysers password to their email address. The code I am using kepps returning this error message. does anyone have a script which I can use or be able to correct the current one?

Warning: mail() [function.mail]: SMTP server response: 503 5.5.2 Need Rcpt command. in C:\Inetpub\wwwroot\www\strictly-invite\html\website\forgotpassword.php on line 72
Code Snippet:




----------------------------- Password Recovery--------------------------------



Your Temporary Password is: $password

Remember your password this time!"; if(mail($email,$subject,$body,$headers)) {echo "Your password has been send to your Private Email";} else {echo "Password Not Send.

Please Try Again Later!...
";} ?>
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:





VIP Parties | Members only events | VIP Parties



 

enter your email:
Open in New Window Select All

Answer : Forgot password script

I think you need to remove the "\n" from line 66
And if that doesn't work you should try replace the "\n" with "\r\n" in your header, but no \r\n in line 66.
Random Solutions  
 
programming4us programming4us