Om skriv en kode
Er der en der vil om skrive denne koder så jeg kan bruge den sammen med Jmail ?Min koder er :
<!--#INCLUDE FILE="config.inc" -->
<!--#INCLUDE FILE="top.inc" -->
<%
if Request.QueryString("mode") = "doit" then
Set smtp = Server.CreateObject("SmtpMail.SmtpMail.1")
set my_conn= Server.CreateObject("ADODB.Connection")
my_Conn.Open ConnString
MailServer = "smtpserver.get2net.dk"
Recipients = request.form("email")
Sender = "Wall_8@Hotmail.com"
Subject = "=RS= Forum Password"
mssg = "You have received this mail because you have asked to be reminded of you password"
mssg = mssg & "For the =RS= Forum at http://www.q2.dk/nb/rs/forum" & vbCrLf & vbCrLf
strSql = "Select M_name, M_Password, M_Email from members where M_Name = '"
strSql = strSql & Request.Form("Name") & "' and M_Email ='"
strSql = strSql & Request.Form("email") & "'"
set rs = my_conn.Execute (StrSql)
if rs.EOF or rs.BOF then
mssg = mssg & "Sorry The details you passed were unknown." & vbCrLf & vbCrLf
mssg = mssg & "Please register again at http://www.q2.dk/nb/rs/forum/register.asp" & vbCrLf
Else
mssg = mssg & " Your Password id :- " & rs("M_Password") & vbCrLf
End if
mssg = mssg & "Thank you for using the =RS= Forum"
smtp.MailServer = MailServer
smtp.Recipients = Recipients
smtp.Sender = Sender
smtp.Subject = Subject
smtp.Message = mssg
smtp.SendMail2
Set smtp = Nothing
on error resume next
rs.close
set rs=nothing
my_conn.Close
set my_conn = nothing
%>
<html>
<head>
<title></title>
</head>
<body>
<p align="center"><font face="<% =DefaultFontFace %>" size="4">Password Reminder</p>
<p align="center"><font face="<% =DefaultFontFace %>" size="2">You should receive an email
any moment now!</p>
<%
Else
%>
<p align="center"><font face="<% =DefaultFontFace %>" size="4">Password Reminder</p>
<form action="pword.asp?mode=doit" method="post">
<div align="center"><table background bgColor="#b0c4de" border="1" borderColor="#000000"
cellPadding="0" cellSpacing="0" width="70%">
<TBODY>
<tr>
<td width="50%"><font face="<% =DefaultFontFace %>" size="2">User Name </font></td>
<td width="50%"><font face="<% =DefaultFontFace %>" size="3"><input name="Name" size="30">
</font></td>
</tr>
<tr>
<td><font face="<% =DefaultFontFace %>" size="2">Email</font></td>
<td><font face="<% =DefaultFontFace %>" size="3"><input name="email" size="30"
type="password" value></font></td>
</tr>
<tr>
<td align="middle" colSpan="2"><input name="submit1" type="submit" value="Submit"></td>
</tr>
</TBODY>
</table>
</font></TBODY>
<%
End if
%>
</div>
</form>
</font></font>
</body>
</html>
