View Single Post
  #3 (permalink)  
Old May 27th, 2005, 15:20
benbramz benbramz is offline
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
hi

cheers for tht but i may have explained it wrong. i thought that html was structured the same...im not sure what you gave me does. u see i used microsofts example of how to do html cdonts. this is the script from the page.

Code: Select all
<% 
 dim Connect, Classifieds
Set Connect = Server.CreateObject("ADODB.Connection")
 connections
Set Classifieds = Server.CreateObject("ADODB.Recordset")
Classifieds.Open "SELECT * FROM profile", Connect, 2, 2 
Classifieds.AddNew 
if filename > "" then
Classifieds("image") = TargetURL
else
Classifieds("image") =  "/"&folder&"/blank.gif"
end if
Classifieds("name") = name
Classifieds("posted") = DATE
Classifieds("username") = username
Classifieds("email") = email
Classifieds("password") = password 
Classifieds("question") = question
Classifieds("answer") = answer
Classifieds.Update
Classifieds.close
set Connect = nothing



dim Mail
    Dim myMail
    Dim HTML
    Set myMail = CreateObject("CDONTS.NewMail")

    HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"
    HTML = HTML & "<html>"
    HTML = HTML & "<head>"
    HTML = HTML & "</head>"
    HTML = HTML & "<body bgcolor=""FFFFFF"">"
    HTML = HTML & "welcome message....[/b]</p>"
    HTML = HTML & "

<font size =""2"" face=""Tahoma"">"
    HTML = HTML & "Dear , Thankyou for signing up 
Your account details are as follows:
"
    HTML = HTML & "Username: 
"
    HTML = HTML & "Password: 
"
    HTML = HTML & "Secret question: 
"
    HTML = HTML & "Answer: 
"
    HTML = HTML & "</body>"
    HTML = HTML & "</html>"

    myMail.From="someone@microsoft.com"
    myMail.To="g@msn.com"
    myMail.Subject="Sample CDONTS HTML Message"
    myMail.BodyFormat=0
    myMail.MailFormat=0
    myMail.Body=HTML
    myMail.Send
    set mymail=nothing
    Response.Write "Message Sent!"
For example what im wanting the script to do is on line 38 id like the name to be displayed in the email with other account info (lines 39-42). and in the TO part of the script line 47 id like the email field in tere. hope tht makes sense.
thanks for the reply smokie - much appriciated
Reply With Quote