<%@ Language=VBScript %> <% '************************************************************************* ' DO NOT MODIFY THIS SCRIPT IF YOU WANT UPDATES TO WORK! ' Function : Newsletters and Mailing List ' Product : CandyPress Store Administration ' Version : 2.5 ' Modified : February 2004 ' Copyright: Copyright (C) 2004 CandyPress.Com ' See "license.txt" for this product for details regarding ' licensing, usage, disclaimers, distribution and general ' copyright requirements. If you don't have a copy of this ' file, you may request one at webmaster@candypress.com '************************************************************************* Option explicit Response.Buffer = true const adminLevel = 1 %> <% 'Newsletters dim idNews dim newsBookmark dim newsSubj dim newsBody 'Database dim mySQL, cn, rs, rs2 '************************************************************************* 'Open Database Connection call openDB() 'Store Configuration if loadConfig() = false then response.redirect "sysMsg.asp?errMsg=" & server.URLEncode("Could not load Store Configuration settings.") end if 'Check for most recent newsletter mySQL="SELECT TOP 1 " _ & " idNews,newsBookmark,newsSubj,newsBody " _ & "FROM newsletters " _ & "ORDER BY idNews " set rs = openRSexecute(mySQL) if not rs.eof then newsBody = trim(rs("newsBody")) idNews = rs("idNews") newsBookmark= trim(rs("newsBookmark")) newsSubj = trim(rs("newsSubj")) end if call closeRS(rs) 'Close database connection call closedb() %>

Newsletters and Mailing Lists

1. Select Customers
All Customers
Opt-In Customers Only
Opt-Out Customers Only
Only include customers with PAID orders?
 
2. Select Action
Display Customers
Download Customers
Email Newsletters to Customers (Complete Form Below)
  <% if len(newsBookmark) > 0 then %> <% end if %>
From <%=pEmailSales%>
Subject ">
Message    
  Send as HTML Email
Check this box if you want the 'Message' above to be interpreted as HTML by your customer's email reader.
  Preview Mode?
Preview mode will ignore the customer list, and send one copy of the newsletter to <%=pEmailSales%>.
  Start from <%=newsBookmark%> ?
The previous newsletter ended before all the emails were sent out. Check the box to start the current newsletter at the last known successful email of the previous newsletter.
 
Note: Each newsletter is individually emailed to each of the customers on the list. In cases where you have several thousand customers on your mailing list and a slow email server, you could wait for an hour or even more before the next page is displayed.