Solved

ASPmail error "Paragraph is too large"

Posted on 2006-06-24
10
824 Views
Last Modified: 2012-05-05
I am using ASPmail (SMTPsvg.Mailer component).  On one particularly long email (42383 characters) I get the rror "Paragraph is too large" when trying to send it.

I can't find any reference to this in the docs (http://www.serverobjects.com/comp/Aspmail4.htm). The component otherwise works flawlessly, both for the current client, and for all my other clients.

Anyone know what is the cause (is there an unpublish limit to the length of a mail message)?

Thank you.
0
Comment
Question by:Lev Seltzer
  • 5
  • 4
10 Comments
 
LVL 20

Expert Comment

by:Gawai
ID: 16977614
let me see ur code if u post it here
0
 

Author Comment

by:Lev Seltzer
ID: 16977924
I'm dealing with code that has been in place at this website for about 9 months without any problem. It has also been used for almost 2 years in a similar format at many of my other clients, also without this error.  IN fact, I found almost no references to this error online (the one reference in Experts Exchange was not helpful).

But if you'd still like to see the code, some of it includes the following:

Thanks.

Set Mailer  = Server.CreateObject("SMTPsvg.Mailer")
Mailer.RemoteHost = "localhost"
Mailer.FromName   = gv_strFromName
Mailer.FromAddress= gv_strFromEmail
mailer.clearbodytext
mailer.ClearRecipients
Mailer.RemoteHost = "localhost"
Mailer.Subject    = strSubject
Mailer.ContentType = "text/html"
Mailer.AddRecipient RS("FirstName")& " " & RS("LastName"), RS("email")
Mailer.BodyText = "<HTML><BODY>"& strFullText(iLetter) & "</BODY></HTML>"
if lSendMail then
      if Mailer.SendMail then
            SendLetters =  "Mail sent..."
      else
            SendLetters = "Mail send failure. Error was " & Mailer.Response
      end if
      response.write " (" & SendLetters & ")<BR>"
end if

0
 
LVL 20

Expert Comment

by:Gawai
ID: 16978590
for testing purpose just change it
Mailer.AddRecipient RS("FirstName")& " " & RS("LastName"), RS("email")

to
Mailer.AddRecipient RS("email")

it sould work now
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:Lev Seltzer
ID: 16979572
removing the name makes the program fail:

Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'AddRecipient'

Thanks anyway.
0
 
LVL 20

Expert Comment

by:Gawai
ID: 16981250
0
 

Author Comment

by:Lev Seltzer
ID: 16982450
gawai: Thank you for the suggestion, but that page only has tips on how to skip over the line that is causing the error. I need to actually determine what the error means (it is not found in the documentation) and then correct the situation which causes the error.

0
 
LVL 20

Expert Comment

by:Gawai
ID: 16983907
wat is the error if u change
Mailer.AddRecipient RS("FirstName")& " " & RS("LastName"), RS("email")

to
Mailer.AddRecipient "WEBuilder" , "validEmail@validDomail.com"

or

Mailer.AddRecipient RS("FirstName") , RS("email")


did u try it already ?
0
 

Author Comment

by:Lev Seltzer
ID: 16984322
The mailer routine actually has a loop and can potentially send mail to 3 people, including me (the webmaster). I enabled that part of the loop, but I received the same error message.

Any ideas how to contact tech support for the component? They don't seem to have any references to it on their website http://www.serverobjects.com/
0
 
LVL 6

Accepted Solution

by:
BubbaisBest earned 250 total points
ID: 16985419
WEBuilder,

I had this same issue and I think it was caused by an illegal character.  Make sure in the text that there isn't any ' or ".  

Here is a link to my question a while back...http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21033166.html

Bubs
0
 

Author Comment

by:Lev Seltzer
ID: 16986496
The answer was apparently some type of illegal character.  I am still not sure what it was, or why I received this answer.  But I went through the document once again and tried to remove any remaining illegal characters, and now it sends without an error.

Thanks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Copy only dates 3 92
is this a cms? 8 67
Writing lines of code from a form output in script within a results page 2 23
Obtaining data on ASP 8 28
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question