ASP MAiler

Discussion in 'C#' started by mmiksik, Oct 7, 2008.

  1. #1
    I am using this mailer: http://www.cgiware.com/aspmailer.shtml
    and it does everything I need it to do, just when it sends the contents of the form in an email, the content of all fields is displayed as one line(difficult to read) I would like to break this up into new lines. Can anyone help pls?
     
    mmiksik, Oct 7, 2008 IP
  2. jgarrison

    jgarrison Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't have the script installed so I haven't tested this but I believe adding the text in bold below will put each field on a new line:
    <%
    Function FormToString()
    Dim strOut
    strKeys = objFM.Keys
    strValues = objFM.Items
    For intCnt = 0 To objFM.Count -1
    strOut = strOut & strKeys(intCnt) & "=" & strValues(intCnt) & Chr(10) & Chr(13)
    Next
    FormToString = strOut
    End Function
    %>

    -Jim
     
    jgarrison, Oct 13, 2008 IP