Lev Seltzer
asked on
ASPmail error "Paragraph is too large"
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.
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.
let me see ur code if u post it here
ASKER
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("SMTPs vg.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
But if you'd still like to see the code, some of it includes the following:
Thanks.
Set Mailer = Server.CreateObject("SMTPs
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
for testing purpose just change it
Mailer.AddRecipient RS("FirstName")& " " & RS("LastName"), RS("email")
to
Mailer.AddRecipient RS("email")
it sould work now
Mailer.AddRecipient RS("FirstName")& " " & RS("LastName"), RS("email")
to
Mailer.AddRecipient RS("email")
it sould work now
ASKER
removing the name makes the program fail:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'AddRecipient'
Thanks anyway.
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'AddRecipient'
Thanks anyway.
ASKER
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.
wat is the error if u change
Mailer.AddRecipient RS("FirstName")& " " & RS("LastName"), RS("email")
to
Mailer.AddRecipient "WEBuilder" , "validEmail@validDomail.co m"
or
Mailer.AddRecipient RS("FirstName") , RS("email")
did u try it already ?
Mailer.AddRecipient RS("FirstName")& " " & RS("LastName"), RS("email")
to
Mailer.AddRecipient "WEBuilder" , "validEmail@validDomail.co
or
Mailer.AddRecipient RS("FirstName") , RS("email")
did u try it already ?
ASKER
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/
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/
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
Thanks.