Solved

Arrrrghh....ASPMail SERIOUS problem

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

759 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

19 Experts available now in Live!

Get 1:1 Help Now