removing asterisks from form email results

D

Debbie Herbers

We have forms on our website that our clients use to
report support issues. The email is sent via email to a
Blackberry device that is carried by members of our
support team. They have asked me to remove all of the
asterisks at the beginning of each message, as the
Blackberry can only display 250 characters. Can anyone
give me any suggestions on how to remove these?

Thanks!
 
J

Jim Buyens

-----Original Message-----
We have forms on our website that our clients use to
report support issues. The email is sent via email to a
Blackberry device that is carried by members of our
support team. They have asked me to remove all of the
asterisks at the beginning of each message, as the
Blackberry can only display 250 characters. Can anyone
give me any suggestions on how to remove these?

You would need to write a custom ASP or ASP.NET page that
formats the mail the way you want. Here's a simple example
using ASP:

<body>
<form method="POST">
<input type="text" name="txtBody" size="20"><p>
<input type="submit" value="Submit" name="btnSub"></p>
</form>
<%
Const cdoSchema = _
"http://schemas.microsoft.com/cdo/configuration/"
if request("btnSub") <> "" then
Set objMsg = CreateObject("CDO.Message")
objMsg.Subject = "Test " & now()
objMsg.Sender = "[email protected]"
objMsg.To = "[email protected]"
objMsg.TextBody = "The text box said, """ & _
request("txtBody") & """."
objMsg.Configuration.Fields.Item(cdoSchema & _
"sendusing") = 2
objMsg.Configuration.Fields.Item(cdoSchema & _
"smtpserver") = "smtp.projetech.com"
objMsg.Configuration.Fields.Item(cdoSchema & _
"smtpserverport") = 25
objMsg.Configuration.Fields.Update
objMsg.Send
end if
%>
</body>

You can change the objMsg.TextBody = statement to format
the body of the message any way you want. Use the built-in
constant vbCrLf to create line breaks. And of course,
you'll want to change the subject, the sender address, the
To address, and the smtp server name as well.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
M

Mark Fitzpatrick

Unfortunately, the FP form mailer can't do this itself. You would have to
write a custom form mailer that could do a replace on the form field strings
replacing the asterisks with nothing and then using passing these to the
email handler.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Top