I have a site which uses asp code to send out e-mail messages. Everything seems to work fine the majority of the time, but occationally I have someone respond that they only received part of the message that should have been sent to them. So far, it has only happened to people that have an address @nycap.rr.com. I'm not sure if this is related to those addresses or if this is only because a very few number of people seem to be having the problem so I'm not getting a big sample. The e-mail message sends, but it is often cut off mid word. When I looked at the variable that is being sent as the body, the cut off point was at 1024. This seems to be very rare and I can't seem to replicate the problem with any of my e-mail addresses. However, one customer experienced the problem twice in a row. Here is a sample of the code which is being used to send out the emails:
================================================== =============
FName = Request.Form("FName")
LName = Request.Form("LName")
ID_Number = Request.Form("ID_Number")
strFromName = "Adirondack Quilts"
strSender = "
[email protected]"
strMailServer = "mail.adirondackquilts.com"
strRecipientsName = Request.Form("email")
strRecipients = Request.Form("email")
strSubject = "Your Adirondack Quilts Account"
HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN""><html><body><TABLE width=""100%"" border=0 style=""border-collapse: collapse"" bordercolor='#111111' cellpadding='0' cellspacing='0'><TR><TD><P align=center><STRONG>Adirondack Quilts</STRONG><BR>21 Cooper Street<BR>Glens Falls, NY 12801<BR>518-615-0134<BR>1-800-250-5021<BR><A href='http://www.adirondackquilts.com'>www.adirondackquilts.com </A><BR>E-mail us at: <A href='mailto:
[email protected]'>info@adiro ndackquilts.com</A></P><P align=center><STRONG>Studio Hours: Tuesdays - Saturdays 10 - 4</STRONG></P></TD><TD><DIV align=center><IMG src='http://www.adirondackquilts.com/images/Logo2.jpg' width='100' height='99'></DIV></TD></TR><TR><TD colSpan=2>Dear " & FNAME & " " & LNAME & ",<p> An account has been created for you at adirondackquilts.com. Below is your username and password. If you have any questions or concerns, feel free to contact us.</p><p>Your E-mail Address: " & request.form("email") & "<br>Your Password: " & Request.Form("Password") & "</p><p>Thank you for being a member of AdirondackQuilts.com!</TD></TR></TABLE></body></html>"
strMessage = HTML
Set objNewMail = Server.CreateObject("Persits.MailSender")
objNewMail.FromName = strFromName
objNewMail.From = strSender
objNewMail.AddReplyTo strSender
objNewMail.Host = strMailServer
objNewMail.AddAddress strRecipients, strRecipientsName
objNewMail.Subject = strSubject
objNewMail.IsHTML = True
objNewMail.Body = strMessage
on error resume next '## Ignore Errors
objNewMail.Send
================================================== ==
In the above code, the e-mail cuts off after the second s in password in "your username and password". I was wondering if anyone had ever heard of anything like this, or if I am doing something that it incorrect which may be causing it. I'm a little confused because it seems to happen so rarely. I really don't know anything about how the code for sending the e-mail works - I found it using trial and error with different code samples. Thanks!