Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 14

Discussione: errore server

  1. #1

    errore server

    Ciao a tutti premetto che di programmazione non ne capisco una mazza, quindi se dirò qualche baggianata.... chiedo scusa già da ora....
    sto cercando di implementare una mailinglist e realtiva newsletter ho cercato degli script e quello che mi sembrava più friendly funziona solo per in parte nel senso che alcune pagine restituiscono errori di questo tipo

    Nominativo inserito

    Server object error 'ASP 0177 : 800401f3'

    Server.CreateObject Failed

    /mailing.asp, line 32

    800401f3

    qualcuno saprebbe aiutarmi grazie.

    a il sito e hostato su server windows di aruba.....

  2. #2
    nico, sarebbe oltremodo d'aiuto conoscere il contenuto della riga 32... la sfera di cristallo è in ferie...

  3. #3

    ti mando il listato scusami....

    <% response.buffer=true %>
    <html>
    <head>
    <title>sunrise restaurant&amp;cocktails gallipoli mailing list</title>
    <style type="text/css">
    <!--
    .Stile1 {
    font-family: Arial, Helvetica, sans-serif;
    color: #999900;
    }
    -->
    </style>
    </head>
    <body bgcolor="green" link="#990000" vlink="#990000" alink="#ffcc00">
    <%
    email=request("emailaddress")
    action=request("action")
    if action="join" then
    'response.write("JOIN")
    Set cn = Server.CreateObject("ADODB.Connection")
    %><%
    Set rs = Server.CreateObject("ADODB.Recordset")
    strSQL="SELECT Email FROM Mailing WHERE Email='" & email & "'"
    rs.Open strSQL,cn
    if rs.eof then
    'response.write("trovato")
    strSQL = "INSERT INTO Mailing (Email) VALUES ('" & Email & "')"
    cn.Execute(strSQL)
    set rs = nothing
    set cn = nothing
    response.write("Nominativo inserito")
    Set objMail = Server.CreateObject("CDONTS.NewMail")
    riga32 objMail.BodyFormat = 0
    objMail.MailFormat = 0
    objMail.From="stuffsunrise@sunriserestaurantcockta ils.it"
    objMail.To=email
    objMail.Subject="Iscrizione mailinglist"
    objMail.Body="<html><body bgcolor=black><font face=Arial size=4 color=#ffffff><center><a href=http://www.sunriserestaurantcocktails.it>
    Grazie per esserti iscritto alla mailinglist diSUNRISE RESTAURANT&COCKTAILS!</font></body></html>"
    objMail.Send
    Set objMail = nothing
    response.redirect("http://www.sunriserestaurantcocktails.it/home.html")
    else
    %>
    <center><h3>L'email inserita esiste già!</h3>
    Torna alla home</center>
    <%
    set rs = nothing
    set cn = nothing
    end if
    else
    'response.write("Leave")
    Set cn = Server.CreateObject("ADODB.Connection")
    %><%
    Set rs = Server.CreateObject("ADODB.Recordset")
    strSQL="SELECT Email FROM Mailing WHERE Email='" & email & "'"
    rs.Open strSQL,cn
    if rs.eof then
    %>
    <center><h3>L'email non è stata trovata!</h3>
    Torna alla home</center>
    <%
    set rs = nothing
    set cn = nothing
    else
    strSQL="DELETE FROM Mailing WHERE Email='" & Email & "'"
    %>
    <center><h3 class="Stile1">L'email è stata cancellata dalla mailinglist!</h3>

    Torna alla home</center>
    <%
    cn.Execute(strSQL)
    set rs = nothing
    set cn = nothing
    Set objMail = Server.CreateObject("CDONTS.NewMail")
    objMail.BodyFormat = 0
    objMail.MailFormat = 0
    objMail.From="rto@rto.it"
    objMail.To=email
    objMail.Subject="Iscrizione mailinglist"
    objMail.Body="<html><body bgcolor=black><font face=Arial size=4 color=#990000><center>
    La tua email è stata rimossa dalla mailinglist di SUNRISE RESTAURANT&COCKTAILS.IT</font></body></html>"
    objMail.Send
    Set objMail = nothing
    end if
    end if
    %>
    </body>
    </html>

  4. #4
    debbo contarmi io le righe? evidenzia la 32, dai

  5. #5

    ci provo ho messo gli spazi l'ditor non mi aiuta in questo senso....

    <% response.buffer=true %>
    <html>
    <head>
    <title>sunrise restaurant&cocktails gallipoli mailing list</title>
    <style type="text/css">
    <!--
    .Stile1 {
    font-family: Arial, Helvetica, sans-serif;
    color: #999900;
    }
    -->
    </style>
    </head>
    <body bgcolor="green" link="#990000" vlink="#990000" alink="#ffcc00">
    <%
    email=request("emailaddress")
    action=request("action")
    if action="join" then
    'response.write("JOIN")
    Set cn = Server.CreateObject("ADODB.Connection")
    %><%
    Set rs = Server.CreateObject("ADODB.Recordset")
    strSQL="SELECT Email FROM Mailing WHERE Email='" & email & "'"
    rs.Open strSQL,cn
    if rs.eof then
    'response.write("trovato")
    strSQL = "INSERT INTO Mailing (Email) VALUES ('" & Email & "')"
    cn.Execute(strSQL)
    set rs = nothing
    set cn = nothing
    response.write("Nominativo inserito")
    Set objMail = Server.CreateObject("CDONTS.NewMail")

    RIGA 32>> objMail.BodyFormat = 0

    objMail.MailFormat = 0
    objMail.From="stuffsunrise@sunriserestaurantcockta ils.it"
    objMail.To=email
    objMail.Subject="Iscrizione mailinglist"
    objMail.Body="<html><body bgcolor=black><font face=Arial size=4 color=#ffffff><center><a href=http://www.sunriserestaurantcocktails.it>
    Grazie per esserti iscritto alla mailinglist diSUNRISE RESTAURANT&COCKTAILS!</font></body></html>"
    objMail.Send
    Set objMail = nothing
    response.redirect("http://www.sunriserestaurantcocktails.it/home.html")
    else
    %>
    <center><h3>L'email inserita esiste già!</h3>
    Torna alla home</center>
    <%
    set rs = nothing
    set cn = nothing
    end if
    else
    'response.write("Leave")
    Set cn = Server.CreateObject("ADODB.Connection")
    %><%
    Set rs = Server.CreateObject("ADODB.Recordset")
    strSQL="SELECT Email FROM Mailing WHERE Email='" & email & "'"
    rs.Open strSQL,cn
    if rs.eof then
    %>
    <center><h3>L'email non è stata trovata!</h3>
    Torna alla home</center>
    <%
    set rs = nothing
    set cn = nothing
    else
    strSQL="DELETE FROM Mailing WHERE Email='" & Email & "'"
    %>
    <center><h3 class="Stile1">L'email è stata cancellata dalla mailinglist!</h3>

    Torna alla home</center>
    <%
    cn.Execute(strSQL)
    set rs = nothing
    set cn = nothing
    Set objMail = Server.CreateObject("CDONTS.NewMail")
    objMail.BodyFormat = 0
    objMail.MailFormat = 0
    objMail.From="rto@rto.it"
    objMail.To=email
    objMail.Subject="Iscrizione mailinglist"
    objMail.Body="<html><body bgcolor=black><font face=Arial size=4 color=#990000><center>
    La tua email è stata rimossa dalla mailinglist di SUNRISE RESTAURANT&COCKTAILS.IT</font></body></html>"
    objMail.Send
    Set objMail = nothing
    end if
    end if
    %>
    </body>
    </html>orange [B][I]

  6. #6
    maro', la 32 sarà questa

    Set objMail = Server.CreateObject("CDONTS.NewMail")

    visto che ti dice che NON può creare l'oggetto.

    va' nella guida di aruba, e controlla quale oggetto mettono a disposizione per le mail. ci sono sicuramente anche degli esempi.

  7. #7
    GRAZIE TI FARO' SAPERE.....

  8. #8
    ARUBA DA UN PRIMO SGURDO DICE CHE USA

    Cdosys, formMail

    QUINDI DOVREI SOSTITUIRE L'OBJECT DELLA LINEA 32 CON QUESTO?

  9. #9
    non URLARE! togli il caps-lock!

    usa CDOSYS

  10. #10

    prova fallita

    scusa se insisto non vorrei approfittare della tua disponibilità....

    non urlare a cosa?

    ho provato a sostituire l'object della linea 32

    in questi modi:

    CDOSYS
    Cdosys
    CDO ( come da esempio aruba)
    cdosys
    ma il risultato non cambia, stesso errore.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.