Results 1 to 4 of 4

Thread: Mail application

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Ireland
    Posts
    224

    Mail application

    Hi guys
    I have a web based administration tool to view an access database that I have on the web server. On this I can see a list of e-mail address of customers. I want to be able to send a mail to all of the customers on this list one a month, a news letter type of thing. Can someone offer me some guidance on how to go about doing a project like this. I have to keep it all web based.

    Cheers
    JK

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I am also trying to achieve EMAILing status for my site,

    I need to send the users emails when:
    - They haven't logged in and their accounts will be terminated
    - They have just signed up
    - They have a new PM (Private Message)
    - Their site has been processed, when sending in info pages

    I am using a server object to create this but dont know where to start, so I am trying to use a book.

    I can post it in a minute.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Once you have a SMTP server object installed in IIS, then you can use this code to get you started.

    Code:
    <%
    Set objMail = Server.CreateObject("CDONTS.Newmail")
    objMail.To = "[email protected]"
    objMail.From = "[email protected]"
    objMail.Value("Reply-To") = "[email protected]"
    objMail.Subject = "This is a TEST"
    objMail.Body = "Test Message Test Message -BODY- Test Message"
    objMail.Send
    Set objMail = Nothing
    %>
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    kayoca
    Guest
    Originally posted by Sastraxi
    I am also trying to achieve EMAILing status for my site,

    I am using a server object to create this but dont know where to start, so I am trying to use a book.

    I can post it in a minute.
    What you can do is when a user login on your site you can save the current date and time to check it for later.
    Just make sure that your site is checking everyday for the date when the first user is viewing your site.
    Use Application object for your date control. Lets say
    you have your current date and place it in a application session.
    Code:
    Application.Lock
    Application ( "CurrentDate" ) Date
    Application.Unlock
    And let it check for the Date everytime someone is viewing your page.
    Code:
    If Not Application ( "CurrentDate" ) = Date Then
      ' new day has come.
    End If

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