Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    CDONTS - Put incremental number in subject of email

    I am using MS FrontPage and Windows XP. I am using CDONTS to email information from an online form on our Intranet to specific email addresses. We also use Exchange servers if that helps.

    Basically I just want to put a number in the subject field of the recipient (eg 0000) - which will increase in incriments of 1 every time someone submits the form.

    Many thanks in advance for any help with this.

  • #2
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,072
    Thanks
    4
    Thanked 8 Times in 8 Posts

    CDONTS Has Been Depricated!!!!!

    Hopefully you mean that you are using CDOSYS

    the two are NOT the same!! CDONTS was very buggy and a huge security risk.

    Anyway the only way to keep track of an increment like that is to

    A) either store the info in a text file and use the FileSystemObject to read the text file and update this file each time you send an email or

    B)store the number of emails sent in a database table or XML file or Excel spreadsheet and open this with ADO read and update this each time an email is sent.

    C) Store a variable inside the application object in the Global.ASA file (not a good move because if the server restarts so will your count)


    There is no other way to increment this each time a user clicks the form button becaus eas far as ASP is concerned each click of the button is totally seperate from the other clicks.


  •  

    Posting Permissions

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