Results 1 to 6 of 6

Thread: automatic emails please help me???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Posts
    81

    Unhappy

    i have never done this before how do i generate
    an email to a client based on a date in the datebase

    how do i do this??
    i have an sql database with a users table
    and in it i want to check the entire users database
    evryday
    by clicking on say a Autoemail button from my admin. asp form
    i want it to check the whole usersdatabase
    field
    Startdate and send those particular users including myself an automatic email giving them there login password and username to my website. but this has to be individual emails
    because the username password are different for each user

    my users table is as follows
    UserID
    Username
    Surname
    Email address
    Startdate

    i dunno where to start with this has anyone got any coding for me to play with to get this process going im using vb script??

    or any ideas as what needs to be done
    can it be done??

  2. #2
    Lively Member
    Join Date
    Feb 2001
    Posts
    87
    Firstly I suggest you figure out how to generate your randam password for each user. And then store it to the database.

    After doing that, you could use the while.....wend function to go through the recordset and create the email recipent, subject, body that contains the username and password, and then sends the email.

    emm.. if you need the code tell me, i can get it done for you. and another thing i am confused at. I think it is better you send the details automaticly upon registration. Wouldn't that be great.
    MohamadHassan<equuelus@icqmail.com>

    Javascript,VBScript,ASP,LearningVBfor.NET

    ICQ:7205608

  3. #3
    Lively Member yahui's Avatar
    Join Date
    Jan 2001
    Posts
    102

    How to generate emails without the click of a button?

    Hi,
    I'm able to generate emails by a click of a button. However I want to generate emails automatically without user's trigger, that is I want to emails to be sent, say..6pm daily without the clicking of the "Send" button.
    Can anyone tell me how to achieve this?

    Thank you very much.

  4. #4
    Lively Member
    Join Date
    Feb 2001
    Posts
    87
    hi

    maybe you could write a function in global.asa to check what time is it when a user browse thru your website and execute the send email function when it's 6pm.
    MohamadHassan<equuelus@icqmail.com>

    Javascript,VBScript,ASP,LearningVBfor.NET

    ICQ:7205608

  5. #5
    Lively Member yahui's Avatar
    Join Date
    Jan 2001
    Posts
    102

    But..

    Hi,
    My application is a stand-alone application..not a website...Is there any example that teach me how to write such a function?

    Thank you very much.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Posts
    81

    auto email

    hi there if someone tells you how to do that autoemail
    on certain times of the day can you let me know the details

    regards
    john

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