Salve a tutti,
ho sempre utilizzato CDONTS però adesso per problemi di compatibilità con il server devo utilizzare il CDOSYS, solitamente il codice che utilizzo è il seguente:
C'è qualcuno che mi da una mano a trasformarlo per CDOSYS?Codice PHP:<%
Public Function invia(strEmail)
set objmail = Server.CreateObject("CDONTS.Newmail")
with objmail
.from = "noreply@xxx.it"
.to = stremail
.subject = oggetto
.body = testo
.bodyformat = 0
.mailformat = 0
.importance = 1
.send
end with
set objmail = NOTHING end function %>
Grazie!![]()

Rispondi quotando