|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Feb 2003
Messaggi: 2817
|
[ASP] Invio email CDONTS.NewMail
Ho una pagina, con la quale invio una email
Mi da un errore quando invio l'email Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed /send.asp, line 141 800401f3 Se vado a vedere la riga di tale pagina è la sequente: Set objMail = Server.CreateObject("CDONTS.NewMail") Qui sotto vi riporto il vodice con la quale invio l'email, mi sembra che è tutto corretto perchè l'ho presa da un sito. ------------------------ <% Set cn = Server.CreateObject("ADODB.Connection") %><!--#include file="OpenConn.asp"--><% Set rs = Server.CreateObject("ADODB.Recordset") strSQL="SELECT Email FROM Mailing ORDER BY Email" rs.Open strSQL,cn tipo=request("Tipo") email=request("Email") mittente=request("Mittente") oggetto=request("Oggetto") if tipo="html" then do while not rs.eof Set objMail = Server.CreateObject("CDONTS.NewMail") objMail.BodyFormat = 0 objMail.MailFormat = 0 objMail.From=mittente objMail.To=rs("Email") objMail.Subject=oggetto objMail.Body=email objMail.Send Set objMail = nothing rs.movenext loop else do while not rs.eof Set objMail = Server.CreateObject("CDONTS.NewMail") objMail.BodyFormat = 1 objMail.MailFormat = 1 objMail.From=mittente objMail.To=rs("Email") objMail.Subject=oggetto objMail.Body=email objMail.Send Set objMail = nothing rs.movenext loop end if set cn = nothing set rs = nothing %> -------------------------------- Da cosa può dipendere???? Dal server che ospita il sito???? Ciao e grazieeeeee
__________________
AMD 3700x --- ASUS X570 CROSSHEAR VIII HERO --- 4x 8GB Corsair Vengeance RGB PRO 3600 MHz --- SSD: Samsung 980Pro 1TBb --- EVGA RTX 2070 SUPER |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Il server che ospita il sito non ha CDONTS...
|
|
|
|
|
|
#3 | |
|
Senior Member
Iscritto dal: Feb 2003
Messaggi: 2817
|
Esatto
Quote:
Esatto mi sono accorto, lanciando un file .asp che rileva le impostazione Nel caso ti servesse ecco il link http://forum.html.it/forum/showthrea...79#post9362179 Ho letto in giro di sostituire le parti con questo codice Set myMail = CreateObject("CDO.Message") myMail.Subject = "soggetto_email" myMail.From = "[email protected]" myMail.To = "[email protected]" myMail.Bcc = myMail.Cc = myMail.TextBody = "tutto il testo che vuoi" myMail.Send Set myMail = Nothing L'ho fatto, non mi da errore, però ancora non mi è arrivata nella email di quello che ho mandato!!!! Conoscete altro codice da propormi???? Ciao e grazieeeeeeeeeee
__________________
AMD 3700x --- ASUS X570 CROSSHEAR VIII HERO --- 4x 8GB Corsair Vengeance RGB PRO 3600 MHz --- SSD: Samsung 980Pro 1TBb --- EVGA RTX 2070 SUPER |
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 07:37.



















