Visualizzazione dei risultati da 1 a 6 su 6

Discussione: da cdonts a cdo

  1. #1

    da cdonts a cdo

    Ho acquistato alcuni spazi su aruba, ovviamente non supportano cdosys qualcuno può aiutarmi a tradurre questo codice affinche giri con cdosys?

    <%
    gsSYS_EmailLib = "CDONTS (Microsoft SMTP Service)"
    gsSYS_EmailLibVer = "1.2"

    Sub SendEmailMessage( psTo, psFrom, psSubject, psBody)
    If Len(Trim("" & psTo)) > 0 Then
    Dim objCDONTS
    Err.Clear
    On Error Resume Next
    Set objCDONTS = Server.CreateObject("CDONTS.NewMail")
    If Err.Number <> 0 Then
    Response.Write "
    Error:Could not create CDONTS object
    "
    Else
    objCDONTS.To = "" & psTo
    objCDONTS.From = "" & psFrom
    objCDONTS.Subject = "" & psSubject
    objCDONTS.Body = "" & psBody
    objCDONTS.Send
    End If
    Set objCDONTS = Nothing
    On Error Goto 0
    End If
    End Sub

    Sub SendEmailMessageWithFile( psTo, psFrom, psSubject, psBody, psFile)
    If Len(Trim("" & psTo)) > 0 Then
    Dim objCDONTS
    Err.Clear
    On Error Resume Next
    Set objCDONTS = Server.CreateObject("CDONTS.NewMail")
    If Err.Number <> 0 Then
    Response.Write("
    Error:Could not create CDONTS object
    ")
    Else
    objCDONTS.To = "" & psTo
    objCDONTS.From = "" & psFrom
    objCDONTS.Subject = "" & psSubject
    objCDONTS.Body = "" & psBody
    objCDONTS.AttachFile "" & psFile
    If Err.Number <> 0 Then
    Response.Write("
    Error:Could not attach file (" & psFile & ") to the CDONTS object
    ")
    Else
    End If
    objCDONTS.Send
    End If
    Set objCDONTS = Nothing
    On Error Goto 0
    End If
    End Sub
    %>

  2. #2
    Esiste una sezione vademecum e guida ai servizi sul sito dell'hoster che hai nominato.

    Link

  3. #3
    Lo so grazie ma non è sufficiente per fare un porting, o per lo meno non ci riesco mi da un bel pò di errori nonostante tutti dicano che sia semplicissimo!

  4. #4
    Vediamo come hai modificato il codice?

  5. #5
    fare inviare una mail è semplice

    <%

    Set myMail = Server.CreateObject("CDO.Message")
    myMail.Subject="invio password"
    myMail.From="nomeutente@nomesito.it"
    myMail.To="joshua72@libero.it" (questo lo vede vuoto --->) & psTO
    myMail.HTMLBody = """"""
    myMail.Send
    %>





    Far rispettare le variabili un pò meno, non mi interessa che esegua i controlli basta che invii la mail con in dati.

  6. #6
    RISOLTO DA SOLO POTETE CHIUDERE GRAZIE

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.