Arrrrghh....ASPMail SERIOUS problem

Ok, I'm in need of some serious help.  I posted on here a while back a catastrophic error, and nobody was able to adequately help, so I'm upping the ante.  

I have an ASP page which sends out emails which has been working fine for months and months.  All of the sudden about a month ago, we've been having catastropic errors popping up which look like this:

error '8000ffff'
Catastrophic failure
/configuration/asp_includes/functions.asp, line 13

But...we get this error before these catastropic errors start cropping up, but ONLY ONCE...

Microsoft VBScript runtime error '800a01fb'
An exception occurred: 'objNewMail.bodyText'
/configuration/asp_includes/functions.asp, line 13

So, to sum up, we're happily sending 10-15 emails one after the other, we get this 'objNewMail.bodyText' error, then the email sender becomes useless, spitting out Catastropic failures from then on.

Anybody have any ideas?  I have a feeling that the exception that occurs within the object somehow shuts off the COM object, and only a server restart will remedy the situation.  Because this is a web server, we don't want to continually shut off the system to fix this...

Here's the function code:

<%
Function sendHTMLEmail(fromName, fromAddress, toName, toAddress, subject, bodyText)  
      Set objNewMail = Server.CreateObject("SMTPsvg.Mailer")
      objNewMail.RemoteHost = "10.0.0.58"
      objNewMail.AddRecipient toName, toAddress
      objNewMail.FromName = fromName
      objNewMail.FromAddress = fromAddress
      objNewMail.Subject = subject
      objNewMail.ContentType = "text/html"
      objNewMail.BodyText = bodyText
      'objNewMail.SMTPLog = "e:\websites\common_programming\email.log"
      sendHTMLEmail = objNewMail.SendMail

      Set objNewMail = Nothing
End Function

HELP!!
LVL 3
dwaldnerAsked:
Who is Participating?
 
bradleylandConnect With a Mentor Commented:
If you have the option to change the component, try this function using ASPSmartMail, which you can download here:

http://www.aspsmart.com/aspSmartMail/

Function sendHTMLEmail(fromName, fromAddress, toName, toAddress, subject, bodyText)  
     Set objNewMail = Server.CreateObject("aspSmartMail.SmartMail")
     objNewMail.Server = "10.0.0.58"
     objNewMail.Recipients.Add  toAddress, toName
     objNewMail.SenderName = fromName
     objNewMail.SenderAddress = fromAddress
     objNewMail.Subject = subject
     objNewMail.ContentType = "text/html"
     objNewMail.Body = bodyText
     ' ASPSmartMail doesn't support error logging, but you could easily write a error
     ' logging script using On Error Resume Next and the err object. The examples
     ' on the ASPSmart website show how easy it is to handle the errors
     objNewMail.SendMail
     Set objNewMail = Nothing
End Function
0
 
bradleylandConnect With a Mentor Commented:
Well, if you suspect that the error occurs within the object, this is a question for the component vendor. You need to rule out any bad input from your code. Make sure the text you're supplying to the BodyText property is clean. If it contains some strange characters (like an alternative character set) it might trip up the COM object's internal code depending upon what language it was written in. The only other recommendation I can think of is changing the object you're using. ASPSmarMail is another free component that works well.
0
 
webgambitConnect With a Mentor Commented:
My first question is, what changes were made to the server right before the error started happening? I mean, if it was working fine for months on end and no one has modified the ASP page then someone must have modified the server. Either by installing another program or changing the configuration somehow. Have you tried to uninstall the mail object your using and reinstalling it? If not, that would be a good place to start.
0
 
dwaldnerAuthor Commented:
We didn't make any changes to the server...that's the fishy part of this.  No new software, no software patches...nothing...just all of the sudden, error.  

I'm thinking maybe there's a memory leak somewhere...
0
 
hillscottcCommented:

I am having the exact same problem! I have something due tomorrow! Did you ever find a solution?? Incredibly frustrating problem.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.