Results 1 to 3 of 3

Thread: E-mail question

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    2

    Question

    I have a form on a website that posts to an SQL database, what I want to be able to do is post it to the database and email that post to me whenever one is added. Any help would be appreciated.
    ------------------------------
    "Find all you need in your mind if you take the time."

  2. #2
    Addicted Member
    Join Date
    Jun 2000
    Location
    Pittsburgh, PA
    Posts
    149

    Hope this helps

    If your using asp you could submit that info into a new asp page which would handle the database insert and then add the code below
    Code:
    Set objmsg = Server.CreateObject("CDONTS.NewMail")
    
    objmsg.From = "email from address"
    objmsg.to = "email to address"
    objmsg.subject = "subject for email"
    objmsg.body = "message body"
    
    objmsg.send
    this code will have to run on an NT machine since it uses CDO for NTS.

    I hope this helps you.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    2

    Wink

    Hey thanx that worked out great!
    ------------------------------
    "Find all you need in your mind if you take the time."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width