' Find position of 'Reply-To' StartPos = InStr(emailHeaderString, "Reply-To") Response.Write ("StartPos") Response.Write (StartPos) ' Increment past 'Reply-To' if (StartPos0) then StartPos = StartPos + Len("Reply-To: ")
' Find next CR/LF EndPos = InStr(StartPos, emailHeaderString, vbCrLf) Response.Write (" ") Response.Write ("EndPos") Response.Write (EndPos) if (EndPos0) then
replyToAddress =Mid(emailHeaderString, StartPos+1, EndPos - StartPos-2 ) 'This sets the to address on the reply if instr(replyToAddress,"@") then Response.Write (" ") Response.Write ( replyToAddress) end if end if end if%>