<%@LANGUAGE="VBSCRIPT"%>
<%
Response.ContentType = "text/html"
Response.AddHeader "Content-Type", "text/html;charset=UTF-8"
Response.CharSet = "UTF-8"
%>
<%CODEID = Request.QueryString("CODEID")%>
<%
Dim RsDatiCodice
Dim RsDatiCodice_numRows
Set RsDatiCodice = Server.CreateObject("ADODB.Recordset")
RsDatiCodice.ActiveConnection = MM_Conn_STRING
RsDatiCodice.Source = "SELECT * FROM codiciemail WHERE IDcodice = " & CODEID & ""
RsDatiCodice.CursorType = 1
RsDatiCodice.CursorLocation = 2
RsDatiCodice.LockType = 3
RsDatiCodice.Open()
RsDatiCodice_numRows = 0
%>
<%
LinguaCliente=(RsDatiCodice.Fields.Item("codicelin gua").Value)
ClienteEmail=(RsDatiCodice.Fields.Item("codiceemai l").Value)
TestoEmail=(RsDatiCodice.Fields.Item("codicetesto" ).Value)
%>
<%
RsDatiCodice.Close()
Set RsDatiCodice = Nothing
%>
<% ' ++++++ INVIO L'EMAIL ********************
Dim objMessage, objConfig
'Crea gli oggetti per il messaggio e per la configurazione
Set objMessage = CreateObject("CDO.Message")
Set objConfig = CreateObject("CDO.Configuration")
' Imposta le configurazioni
With objConfig
' Server SMTP di uscita
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
' Porta SMTP
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
' Porta CDO
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
' Timeout
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
.Fields.update
End With
objConfig.Fields.Update
Set objMessage.Configuration = objConfig
objMessage.To = "info@cccc.it"
objMessage.From = "info@cccc.it"
'objMessage.Bcc = ospite_email
objMessage.ReplyTo = ClienteEmail
objMessage.Subject = "cccc"
HTML = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">"
HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "<meta http-equiv=Content-Type content=text/html; charset=utf-8 />"
HTML = HTML & "</head>"
' STILI TESTO
HTML = HTML & "<style type=text/css>"
HTML = HTML & "<!--.body {background-color: #121B30;}"
HTML = HTML & ".ContenutoPagina {width:650px; margin-left:auto; margin-right:auto; border:solid 1px #676E7B; padding:10px; background-color: #FFFFFF; color: #121B30;}"
HTML = HTML & ".ContenutoPagina a{color: #121B30;}"
HTML = HTML & "p, table, a {text-align:justify; font-family:Trebuchet MS, Helvetica, Arial; font-size: 13px; color: #121B30; font-weight: normal; text-decoration:none;}"
HTML = HTML & ".ContenutoHeader {width:650px; margin-left:auto; margin-right:auto; padding:10px; padding-top:20px; background-color: #121B30; color: #FFFFFF;}"
HTML = HTML & ".ContenutoHeader p, a{color: #FFFFFF;}"
HTML = HTML & ".testi {padding-right:5px; padding-left:5px;}"
HTML = HTML & ".testi a:link{padding-right:5px; padding-left:5px; text-decoration:underline;}"
HTML = HTML & ".testi a:visited{padding-right:5px; padding-left:5px; text-decoration:underline;}"
HTML = HTML & ".testi a:hover{padding-right:5px; padding-left:5px; text-decoration:none;}"
HTML = HTML & ".testi a:active{padding-right:5px; padding-left:5px; text-decoration:underline;}"
HTML = HTML & ".titoli {font-size: 20px; text-align: center; font-weight: bold; margin: 0; padding: 0;}--></style>"
' FINE STILE
HTML = HTML & "</head>"
HTML = HTML & "<body class=body>"
'HEADER
HTML = HTML & "<div class=ContenutoHeader>"
HTML = HTML & "<table width=650 height=130 border=0 cellpadding=0 cellspacing=0 color=#FFFFFF align=center class=testi>"
HTML = HTML & "<tr style=background-color:#121B30;><td width=250><img src=/LogoInvioEmail.jpg /></td>"
HTML = HTML & "<td width=400>
fff</p></td></tr>"
HTML = HTML & "</table></div>"
'INIZIO CONTENUTI
HTML = HTML & "<div class=ContenutoPagina>"
HTML = HTML & "<table width=650 border=0 cellpadding=0 cellspacing=0 bgcolor=#FFFFFF align=center class=testi>"
HTML = HTML & "<tr><td colspan=2>" & TestoEmail & "</td></tr>"
HTML = HTML & "<tr><td colspan=2 class=titoli>jj
</td></tr>"
%>
<%
HTML = HTML & "</table></div>"
HTML = HTML & "</body>"
HTML = HTML & "</html>"
objMessage.BodyPart.Charset = "utf-8"
objMessage.HTMLBody = HTML
objMessage.HTMLBodyPart.Charset = "utf-8"
On Error Resume Next
' Send the CDOSYS Message
objMessage.Send
Set objMessage = Nothing
Set objConfig = Nothing
objMail.Close
Set objMail = Nothing
'HTML = ""
'HTML = ""
response.write HTML
response.End()
%>