Results 1 to 9 of 9

Thread: Subscriptions DB for a web site

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113

    Question Subscriptions DB for a web site

    Hi all,

    I am building a web site for a company and they need to have a page where users can leave their name and e-mail address. The company can then use the email addresses to send their newsletter to.

    How should I go about this? A simple access db with an asp page can capture the e-mails, but then hwo do I go about turning the table into contacts that they can easily email?

    Thanks
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  2. #2
    Junior Member
    Join Date
    Mar 2004
    Posts
    26
    depends on how they plan on doing their mailing.

    If they're going to send huge batches, you will need to write some sort of routine that

    1. pulls all the email addresses out of access
    2. use something like CDONTS to send out the email.

    the EASY way (if you don't have a ton of recipients) is

    1. pull all email addresses out of access
    2. loop through it to create a long string delimited with a semi colon .. then paste this string into the BCC field in outlook before sending out the email.

  3. #3
    Member
    Join Date
    Mar 2004
    Location
    Askam, Cumbria
    Posts
    38
    Is The Company wanting to personalise the Newsletter with the persons Name?

    What Format is the Newsletter In RTF or HTML ?

    Hope to hear from you soon
    Hacker Neo

    ASP/VBS/VB & ASP.NET Developer
    Cumbria UK

    ####################################
    If It Move's Script it / or hack if that's your way
    ####################################

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113
    Hi
    its an RTF mail and yes, I would like to include their names.

    Thanks in advance
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  5. #5
    Member
    Join Date
    Mar 2004
    Location
    Askam, Cumbria
    Posts
    38
    Ok then following may be slow but as far as I can see I may be the best course of action for you is to use CDO and construct the RTF Letter in a string to be EVal() by the asp page and sent to the contact but in order to do this you need to to a
    do while note rsObj.EOF
    //cdo code goes here//
    Loop



    I'll find my old cdo code and construct the cdo you need and post It later I hope this helps
    Hacker Neo

    ASP/VBS/VB & ASP.NET Developer
    Cumbria UK

    ####################################
    If It Move's Script it / or hack if that's your way
    ####################################

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113
    I will be super grateful if you could do that for me.

    Many THANKS
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  7. #7
    Member
    Join Date
    Mar 2004
    Location
    Askam, Cumbria
    Posts
    38
    Need to know the operating System company for the right e-mail connctivity to use for you

    Hope to hear from you soon
    Hacker Neo

    ASP/VBS/VB & ASP.NET Developer
    Cumbria UK

    ####################################
    If It Move's Script it / or hack if that's your way
    ####################################

  8. #8
    Member
    Join Date
    Mar 2004
    Location
    Askam, Cumbria
    Posts
    38
    If Company OS = 2yk +

    Then here is the code

    Code:
    Set objEmail = CreateObject("CDO.Message")
    objEmail.From = "Sender Address"
    objEmail.To = "Client Address"
    objEmail.Subject = "Server down"
    objEmail.HTMLBody = "<h1>This is some sample message html.</h1>" 
    objEmail.Configuration.Fields.Item _
        ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    objEmail.Configuration.Fields.Item _
        ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
            "Your EXCHANGE Server"
    objEmail.Configuration.Fields.Item _
        ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    objEmail.Configuration.Fields.Update
    objEmail.Send
    If you need help getting it to integrate with your DB for sending let me know send me e-mail @ [email protected]

    Hope this help you
    Regards
    Hacker Neo

    ASP/VBS/VB & ASP.NET Developer
    Cumbria UK

    ####################################
    If It Move's Script it / or hack if that's your way
    ####################################

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113
    Thanks buddy, I will try this out....
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

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