Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2005, 05:56 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default E-mails cut after 1024 characters

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>&nbsp;&nbsp;&nbsp;&nbsp; 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!






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to cut a substring petergoodman XSLT 2 July 17th, 2008 06:29 AM
Database Vendor Code: -1024 Dmitriy ASP.NET 2.0 Professional 5 January 15th, 2008 08:49 AM
Long SQL Query (>1024) in VBA??? mlep Excel VBA 1 June 14th, 2007 08:41 PM
asp cut crmpicco Classic ASP Basics 5 April 1st, 2005 07:36 AM
cut it up crmpicco VB How-To 1 March 3rd, 2005 01:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.