GeinMedlem sedan sep. 20005 700 inlägg vill använda mej av en mail komponent och jag provade exempel koden på denna sida: http://support.microsoft.com/support/kb/articles/Q186/2/04.ASP
men jag får det inte att funka, jag får felmeddelande när jag ska skapa objektet.
Feltyp:
(0x8007007E)
/CDONTSMail.asp, line 48
så här ser raden ut: Set myCDONTSMail = CreateObject("CDONTS.NewMail")
Jag kör Windows XP, smtp tjänsten är igång på IIS, antar att den måste det.. aja... tacksam för hjälp!
Felmeddelandet säger mej inte så jäkla mycket lixom.
------------------
"When there's no more room in hell,
the dead will walk the earth."
---------------------
http://shortenings.cjb.net
jorgenMedlem sedan feb. 20012 412 inlägg Hej,
men hur ser resten ut?
mvh Jörgen :)
------------------
Varför bråka när man kan kramas?
puzzeMedlem sedan sep. 20005 700 inlägg kolla på sidan jag skickade med.. så här ser iaf asp sidan ut, jag körde copy paste, bara för att se om komponenten funkade.
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
<META HTTP-EQUIV="Content-Type"
content="text/html;charset=iso-8859-1">
<TITLE>CDONTSMail</TITLE>
<%
Sub Write(strWriteThis)
'This subroutine just writes out whatever is
'passed to it.
response.write(strWriteThis & "<br>")
end sub
%>
</HEAD>
<BODY>
<%
Dim myCDONTSMail
Dim strFrom
Dim strTo
Dim strSubject
Dim strMessage
Dim lngImportance
'The following variable assignments are not required
'they are just here to make interpretation of the
'myCDONTSMail.Send line easier. You could put the
'Request.Form statements in the .Send line to cut down
'on the amount of code in the file.
strFrom=request.form("txtFrom")
strTo=request.form("txtTo")
strSubject = request.form("txtSubject")
strBody=request.form("txtMessage")
lngImportance = request.form("optImportance")
'The following four lines of code are just here for test
'purposes to see what variables have been pulled in from the
'HTM form.
Write("strFrom = " & strFrom)
Write("strTo = " & strTo)
Write("strSubject = " & strSubject)
Write("strMessage = " & strBody)
Write("Importance = " & lngImportance)
Set myCDONTSMail = CreateObject("CDONTS.NewMail")
myCDONTSMail.Send strFrom,strTo,strSubject,strBody,lngImportance
Set myCDONTSMail = Nothing
Write "Mail has been sent."
%>
</BODY>
</HTML>
------------------
"When there's no more room in hell,
the dead will walk the earth."
---------------------
http://shortenings.cjb.net
puzzeMedlem sedan sep. 20005 700 inlägg på en annan sida med samma funktion får jag detta felmeddelande istället:
Feltyp:
Serverobjekt, ASP 0177 (0x8007007E)
8007007e
/zatzy/chaupdate.asp, line 31
med denna kod:
Set smail = Server.CreateObject("CDONTS.NewMail")
smail.From="zatzy@quakenet"
smail.To="min@email.com"
smail.Subject="Vi har blivit utmanade!"
smail.Body="Klan: " & clanname & vbCrLf & "Klanledare: " & clanleader & vbCrLf
smail.send
------------------
"When there's no more room in hell,
the dead will walk the earth."
---------------------
http://shortenings.cjb.net
jorgenMedlem sedan feb. 20012 412 inlägg Hej!
En sökning på microsoft.com gav detta:
http://support.microsoft.com/support/kb/articles/Q273/7/44.asp
Mvh Jörgen :)
------------------
Varför bråka när man kan kramas?
puzzeMedlem sedan sep. 20005 700 inlägg tackar, där e problemet.. men .. ja, jag förstår inte riktigt vad det är för fil jag ska registrera?
------------------
"When there's no more room in hell,
the dead will walk the earth."
---------------------
http://shortenings.cjb.net
jorgenMedlem sedan feb. 20012 412 inlägg Hej,
Skulle gissa på att du ska köra detta i dos precis som det står i min förra länk:
c:
cd \ils
c:\winnt\system32\regsvr32.exe
c:\ils\hostname.dll
mvh Jörgen :)
------------------
Varför bråka när man kan kramas?
[Redigerat av jorgen den 06 nov 2001]
puzzeMedlem sedan sep. 20005 700 inlägg det där var juh ett exempel.. jag har ingen c:\ils\hostname.dll..
------------------
"When there's no more room in hell,
the dead will walk the earth."
---------------------
http://shortenings.cjb.net
puzzeMedlem sedan sep. 20005 700 inlägg är det någon som vet vilken dll-fil jag ska registrera för att få cdonts.newmail att funka?
------------------
"When there's no more room in hell,
the dead will walk the earth."
---------------------
http://shortenings.cjb.net