Jin Park's home
JIN'S POWER TOOLS
create email logos & scripts preview HTML pictures special characters
ASP emails image replication specifications processes string analyzer
::: Creating HTML e-mails using ASP
  1. Create a new file but use .asp as the extension instead of .htm.

    example:
    filename.asp instead of filename.htm

  2. Put this at the top of the source in the HTML:

    <%
          ref=Request.QueryString("ref")
          if ref="" then Response.Redirect "?ref=12345" end if
    %>

  3. Instead of using the actual refcode for the email, use <%=ref%>

    example:
    You get this URL:
    http://my.coolsavings.com/hc.asp?hC=%HHCODE%&Ref=12345&go=ef&SN=1&cp=0&
    everywhere there is a 98765, replace it with <%=ref%> so
    http://my.coolsavings.com/hc.asp?hC=%HHCODE%&Ref=<%=ref%>&go=ef&SN=1&cp=0&

  4. Send the url with a question mark, 'ref=' and the ref code at the end of the URL.

    example:
    Send this URL:
    http://info.coolsavings.com/preview/filename.asp?ref=12345
    (where 99999 is the actual ref code)

  5. Next time someone needs the same e-mail with a different ref code, they can simply change it in the address bar to whatever ref code they need.

Want to see this work? Type replace the ref value in the URL above or change it in the box below!

ref = 12345
ref: