Solved

Arrrrghh....ASPMail SERIOUS problem

Posted on 2004-04-27
5
542 Views
Last Modified: 2010-08-05
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!!
0
Comment
Question by:dwaldner
5 Comments
 
LVL 3

Assisted Solution

by:bradleyland
bradleyland earned 400 total points
ID: 10932994
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
 

Assisted Solution

by:webgambit
webgambit earned 100 total points
ID: 10935040
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
 
LVL 3

Author Comment

by:dwaldner
ID: 10938634
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
 
LVL 3

Accepted Solution

by:
bradleyland earned 400 total points
ID: 10939020
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
 

Expert Comment

by:hillscottc
ID: 21278495

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

809 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