Solved

Arrrrghh....ASPMail SERIOUS problem

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Video will not go into background 20 39
logo disappears on cell phones 5 55
Best Practice CSS floating images 2 32
rearranging, beautifying pure CSS read more script 5 40
Read about why website design really matters in today's demanding market.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to count occurrences of each item in an array.

947 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

18 Experts available now in Live!

Get 1:1 Help Now