Rexolio
Technical User
- Aug 29, 2001
- 230
I have a script I use on one of my sites that allows registered members to email the other registered members. The enter their email address, subject and message and then submits it to a page that goes through the database, record by record, and sends each member their own individual copy.
The problem I'm having, and I've posted this before with a resolution, is that sometimes a member will enter quotation marks in the body of their message, I guess to emphasize something here or there. Anyway, when this happens, it cuts off the email message from the point where the quotation mark was entered, so people get incomplete messages. I've tried several ways to fix this, but still haven't resolved it. I've had to put up a message telling the user not to use quotation marks, which I don't like having to do, and people still do it anyway.
Looking for some help! Here's the original code I'm using:
<%
strEmail = Request.form("SendersEmail"
strSubj = Request.form("Subject"
strMsg = Request.form("Message"
SQL="SELECT * FROM Members ORDER BY MemberLN, MemberFN"
set List=Conn.execute(SQL)
do while not List.eof
if List("Email" <> "" then
strName = List("MemberFN" & " " & List("MemberLN"
Dim myMail
Set myMail = Server.CreateObject("CDONTS.NewMail"
myMail.Send strEmail, List("Email", strSubj, strName & "," & vbcrlf & vbcrlf & strMsg & vbcrlf & vbcrlf & "NOTE:" & vbcrlf & "You are receiving this email as a Subscribed member. To Unsubscribe from this list, click here: & List("MemberID"
Set myMail = Nothing
end if
List.movenext
loop
List.close
%>
Thanks in Advance,
Rexolio
The problem I'm having, and I've posted this before with a resolution, is that sometimes a member will enter quotation marks in the body of their message, I guess to emphasize something here or there. Anyway, when this happens, it cuts off the email message from the point where the quotation mark was entered, so people get incomplete messages. I've tried several ways to fix this, but still haven't resolved it. I've had to put up a message telling the user not to use quotation marks, which I don't like having to do, and people still do it anyway.
Looking for some help! Here's the original code I'm using:
<%
strEmail = Request.form("SendersEmail"
strSubj = Request.form("Subject"
strMsg = Request.form("Message"
SQL="SELECT * FROM Members ORDER BY MemberLN, MemberFN"
set List=Conn.execute(SQL)
do while not List.eof
if List("Email" <> "" then
strName = List("MemberFN" & " " & List("MemberLN"
Dim myMail
Set myMail = Server.CreateObject("CDONTS.NewMail"
myMail.Send strEmail, List("Email", strSubj, strName & "," & vbcrlf & vbcrlf & strMsg & vbcrlf & vbcrlf & "NOTE:" & vbcrlf & "You are receiving this email as a Subscribed member. To Unsubscribe from this list, click here: & List("MemberID"
Set myMail = Nothing
end if
List.movenext
loop
List.close
%>
Thanks in Advance,
Rexolio