ho questo codice
in smtpServer c'è "smtp.aruba.it"codice:if mailComp = "CDOSYS" then set cdoMessage = Server.CreateObject("CDO.Message") set cdoConfig = Server.CreateObject("CDO.Configuration") cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate")= 0 cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "indirizzoEmail" cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password" cdoConfig.Fields.Update set cdoMessage.Configuration = cdoConfig cdoMessage.From = fromAddr cdoMessage.ReplyTo = replyTo cdoMessage.To = recipients cdoMessage.Subject = subject cdoMessage.HtmlBody = body on error resume next cdoMessage.Send if Err.Number <> 0 then SendMail = "Email send failed: " & Err.Description & "." end if set cdoMessage = Nothing set cdoConfig = Nothing exit function end if
se elimino l'autenticazione ho questo errore:
553 sorry, you need to supply the correct username and password for SMTP-AUTH (#5.7.1)
con l'autenticazione e in smtpauthenticate ci metto 0 ho questo errore
553 sorry, you need to supply the correct username and password for SMTP-AUTH (#5.7.1)
se in smtpauthenticate ci metto 1 (così dovrebbe essere per l'autenticazione) viene quest'altro errore:
Impossibile inviare il messaggio al server SMTP. Codice errore di trasporto: 0x80040217. Risposta del server: not available .
che sarà???
ps:
sono quasi certamente sicuro che l'hosting sia aruba, ma nel caso non sia così che tipo di errore potrebbe generarsi?
come potrei verificare se il sito che sto modificando è su aruba?
mille grazie


Rispondi quotando