The ADODB connection works so I didn't add that code. Notice problem?
<%Dim Mail
Set Mail = CreateObject("CDONTS.NewMail")
Mail.From = "blablabla@hotmail.com"
Mail.To = username
Mail.Subject = "Thanks for Registering"
buf = "Dear " & rst("name") & vbCrLf
buf = buf & " " & vbCrLf
buf = buf & "Thank you for registering." & vbCrLf
buf = buf & " " & vbCrLf
buf = buf & "Your login details are as follows:" & vbCrLf
buf = buf & " " & vbCrLf
buf = buf & "Username: " & rst("user") & vbCrLf
buf = buf & "Password: " & rst("pass") & vbCrLf
buf = buf & " " & vbCrLf
buf = buf & "To Activate your account, please click on the following link" & vbCrLf
buf = buf & "http://etc.com/activate.asp?nr=" & rst("nr") & vbCrLf
buf = buf & " " & vbCrLf
buf = buf & "Regards" & vbCrLf
buf = buf & "The Administrator" & vbCrLf
Mail.Body = buf%>
<%
rst.Close
Pears.Close
set Pears = Nothing
Mail.Send
Set Mail = Nothing
response.redirect ("thanks.asp")
%>
2007-04-29
11:13:53
·
3 answers
·
asked by
kewlguitarist
2
in
Computers & Internet
➔ Programming & Design