Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 10-07-2006, 08:20 PM   #1 (permalink)
Banned
 
cimmeron's Avatar
 
Join Date: 02-16-06
Posts: 9,607
iTrader: 0 / 0%
Latest Blog:
None

cimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crap
formmail error 8000900F

My form worked until yesterday:

http://www.eco-cell.org/reg_form.asp

error:

error '8009000f'

Object already exists.

/formmail.asp, line 20

Quote:
<%
response.expires=0
dim strFrom
dim strTo
dim strRedirect
strFrom = "webmaster@" & trim(Replace(Request.ServerVariables("HTTP_HOST"), "www.",""))
strTo = request("To")
strRedirect = request("redirect")
if IsNull(strRedirect) then strRedirect = ""
For i=1 To request.form.count
strMessage = strMessage & request.form.key(i) & ": " & request.form.item(i) & vbCrLf
Next


Set objMail = CreateObject("CDONTS.NewMail")
objMail.From=strFrom
objMail.To=strTo
objMail.Subject=trim(Replace(Request.ServerVariabl es("HTTP_HOST"),"www.","")) & " Form Mail"
objMail.Body=strMessage
objMail.Send
set objMail=nothing

if len(strRedirect)>0 Then
response.redirect strRedirect
else
%>

<HTML>
<TITLE>Form Mail Results</TITLE>
<BODY BGCOLOR=#FFFFFF>
<FONT FACE="MS Sans Serif,Arial,Helvetica">
<FONT SIZE=+3><B><%=Request.ServerVariables("HTTP_HOST") %>: Email Sent</B></FONT>
<P>
The following message has been sent.
</FONT>
<HR>
<PRE>
From: <%=strFrom%>
To: <%=strTo%>
Subject: FORM results</PRE>

<PRE>
<%=strMessage%>
</PRE>
</BODY>
</HTML>
<%
end if
%>
Help?

D
cimmeron is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-09-2006, 12:18 PM   #2 (permalink)
Contributing Member
 
exam's Avatar
 
Join Date: 04-20-06
Posts: 310
iTrader: 0 / 0%
Latest Blog:
None

exam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web pro
Try naming your object something other than objMail, also you might look into CDO.Message instead of CDONTS.NewMail.

Also, you can apparently have problems if some of the properties of the object are not set. Try this.

<%
Set objCDOMail=Server.CreateObject("CDONTS.NewMail")
objCDOMail.From=emailstring
objCDOMail.To="email@email.com"
objCDOMail.Subject="The Subject"
objCDOMail.Bcc="someemail@email.com"
objCDOMail.BodyFormat=0
objCDOMail.MailFormat=0
objCDOMail.Body=bodystring
objCDOMail.Importance=2
objCDOMail.Send
Set objCDOMail=Nothing
%>

I'm no asp guru, so I might not be the best source of info
__________________
~exam~
exam is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-10-2006, 10:41 AM   #3 (permalink)
Banned
 
cimmeron's Avatar
 
Join Date: 02-16-06
Posts: 9,607
iTrader: 0 / 0%
Latest Blog:
None

cimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crapcimmeron is web crap
I'm not an asp guru either and I cannot get this to work.

Thanks though
cimmeron is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-10-2006, 10:49 AM   #4 (permalink)
Contributing Member
 
exam's Avatar
 
Join Date: 04-20-06
Posts: 310
iTrader: 0 / 0%
Latest Blog:
None

exam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web pro
I'm not sure if this is important or not, but on this line,

Set objCDOMail=Nothing

make sure nothing is capitalized.
__________________
~exam~
exam is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
formmail with ASP DaveyBoy Coding Forum 8 03-03-2006 01:27 PM
formmail pcs802 Coding Forum 4 06-04-2004 06:05 AM
FormMail wbstein Coding Forum 12 05-19-2004 08:52 AM
Your recommended PHP Formmail scripts bestempire Coding Forum 2 10-25-2003 06:47 PM
Formmail data to a .CSV file farns Coding Forum 13 10-22-2003 01:42 PM


Sponsor Links
Webmaster Forum Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:51 AM.
© Copyright 2008 V7 Inc