Solved

Arrrrghh....ASPMail SERIOUS problem

Posted on 2004-04-27
5
541 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now