ragazzi chiedo aiuto a voi.
io in un forum ho una pagina che invia le mail in formato testo, è possibile cambiando il codice inviare la mail in formato htnl?
posto il codice:
<%
if Session(strCookieURL & "Approval") <> "15916941253" then
scriptname = split(request.servervariables("SCRIPT_NAME"),"/")
Response.Redirect "admin_login.asp?target=" & scriptname(ubound(scriptname))
end if
if lcase(strEmail) <> "1" then
Response.Write "
<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """>Non hai la funzione E-mail Attiva.</font></p>" & vbNewLine
WriteFooterShort
Response.End
end if
if Request.Form("Method_Type") = "Send_EMail" then
Err_Msg = ""
txtSubject = trim(Request.Form("Subject"))
txtMessage = trim(Request.Form("Message"))
if txtSubject = "" then
Err_Msg = Err_Msg & "[*]Devi inserire l'oggetto."
end if
if txtMessage = "" then
Err_Msg = Err_Msg & "[*]Devi inserire il Messaggio."
end if
if Err_Msg = "" then
strSql = "SELECT M_NAME, M_EMAIL, M_LEVEL "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS"
strSql = strSql & " WHERE M_STATUS = " & 1
if Request.Form("optin") = 1 then
strSql = strSql & " AND M_RECEIVE_EMAIL = " & 1
end if
Select Case Request.Form("limitmods")
Case 1
strSql = strSql & " AND M_LEVEL = " & 2
Case 2
strSql = strSql & " AND M_LEVEL = " & 3
Case 3
strSql = strSql & " AND M_LEVEL >= " & 2
End Select
if Request.Form("strInitial") = 1 then
Initial = split("A|B|C|D|E|F","|")
strSql = strSql & " AND (M_NAME LIKE '" & Initial(0) & "%'"
for icnt = 1 to ubound(Initial)
strSql = strSql & " OR M_NAME LIKE '" & Initial(icnt) & "%'"
next
strSql = strSql & ")"
elseif Request.Form("strInitial") = 2 then
Initial = split("G|H|I|J|K|L|M","|")
strSql = strSql & " AND (M_NAME LIKE '" & Initial(0) & "%'"
for icnt = 1 to ubound(Initial)
strSql = strSql & " OR M_NAME LIKE '" & Initial(icnt) & "%'"
next
strSql = strSql & ")"
elseif Request.Form("strInitial") = 3 then
Initial = split("N|O|P|Q|R|S","|")
strSql = strSql & " AND (M_NAME LIKE '" & Initial(0) & "%'"
for icnt = 1 to ubound(Initial)
strSql = strSql & " OR M_NAME LIKE '" & Initial(icnt) & "%'"
next
strSql = strSql & ")"
elseif Request.Form("strInitial") = 4 then
Initial = split("T|U|V|W|X|Y|Z","|")
strSql = strSql & " AND (M_NAME LIKE '" & Initial(0) & "%'"
for icnt = 1 to ubound(Initial)
strSql = strSql & " OR M_NAME LIKE '" & Initial(icnt) & "%'"
next
strSql = strSql & ")"
end if
set rsMail = Server.CreateObject("ADODB.Recordset")
rsMail.Open strSql, my_Conn, 0, 1, &H0001
if rsMail.EOF then
recMemberCount = ""
else
allMemberData = rsMail.GetRows(-1)
recMemberCount = UBound(allMemberData, 2)
end if
rsMail.Close
set rsMail = Nothing
server.scriptTimeout = 10000
if recMemberCount <> "" then
mM_NAME = 0
mM_EMAIL = 1
mM_LEVEL = 2
Response.Write " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>E-Mail Inviata</font></p>" & vbNewLine
for RowCount = 0 to recMemberCount
Member_Name = allMemberData(mM_NAME,RowCount)
Member_EMail = allMemberData(mM_EMAIL,RowCount)
Member_Level = allMemberData(mM_LEVEL,RowCount)
strRecipientsName = Member_Name
strRecipients = Member_EMail
strFromName = strForumTitle
strFrom = strSender
strSubject = txtSubject
if Request.Form("emailfooter") = 1 then
strMessage = txtMessage & vbNewLine & vbNewLine
strMessage = strMessage & "----------" & vbNewLine
strMessage = strMessage & "Hai ricevuto questo messaggio dal " & strForumTitle & " in quanto sei "
Select Case Member_Level
Case 1
strMessage = strMessage & "un Utente "
Case 2
strMessage = strMessage & "un Moderatore "
Case 3
strMessage = strMessage & "un Amministratore "
End Select
strMessage = strMessage & "del forum." & vbNewLine
strMessage = strMessage & "Il tuo Nome Utente è: " & Member_Name & vbNewLine
strMessage = strMessage & "L'indirizzo del forum è " & strForumURL & "."
Else
strMessage = txtMessage
End If
%>
<%
next
If recMemberCount = 0 Then
Response.Write " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Invia " & (recMemberCount + 1) & " E-Mail</font></p>" & vbNewLine
Else
Response.Write " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Inviate " & (recMemberCount + 1) & " E-Mail</font></p>" & vbNewLine
End If
else
Response.Write "
<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Nessun Utente Trovato</font></p>" & vbNewLine
end if
else
Response.Write "
<font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """ color=""" & strHiLiteFontColor & """>C'è stato un Problema con la tua E-mail</font></p>" & vbNewLine & _
" <table>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """><ul>" & Err_Msg & "[/list]</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
"
<font size=""" & strDefaultFontSize & """>Torna a reinserire i Dati</font></p>" & vbNewLine
end if
else
Response.Write " <form action=""admin_pop_mail.asp"" method=""Post"" id=""Form1"" name=""Form1"">" & vbNewLine & _
" <input type=""hidden"" name=""Method_Type"" value=""Send_EMail"">" & vbNewLine & _
" <table border=""0"" width=""100%"" cellspacing=""0"" cellpadding=""0"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strPopUpBorderColor & """>" & vbNewLine & _
" <table border=""0"" width=""100%"" cellspacing=""1"" cellpadding=""1"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strHeadCellColor & """ noWrap colspan=""2"" vAlign=""top""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>Invia Email</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Oggetto:</font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><input maxLength=""50"" name=""Subject"" tabindex=""1"" value="""" size=""35""></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <script language=""JavaScript"">document.Form1.Subject.foc us();</script>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Messaggio:</font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><textarea cols=""29"" name=""Message"" rows=""6"" tabindex=""2"" wrap=""VIRTUAL""></textarea></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Nome Utente:</font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input type=""radio"" class=""radio"" name=""strInitial"" value=""1"">A-F<input type=""radio"" class=""radio"" name=""strInitial"" value=""2"">G-M<input type=""radio"" class=""radio"" name=""strInitial"" value=""3"">N-S<input type=""radio"" class=""radio"" name=""strInitial"" value=""4"">T-Z<input type=""radio"" class=""radio"" name=""strInitial"" value=""5"" checked>Tutti</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Livello
Utente:</font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input type=""radio"" class=""radio"" name =""limitmods"" value=""0"" checked>Tutti gli Utenti.
" & vbNewLine & _
" <input type=""radio"" class=""radio"" name =""limitmods"" value=""1"">Solo Moderatori.
" & vbNewLine & _
" <input type=""radio"" class=""radio"" name =""limitmods"" value=""2"">Solo Amministratori.
" & vbNewLine & _
" <input type=""radio"" class=""radio"" name =""limitmods"" value=""3"">Amministratori e Moderatori.</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name =""optin"" type=""checkbox"" value=""1"" checked>Clicca qui per inviare SOLO agli Utenti.</font>
<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name =""emailfooter"" type=""checkbox"" value=""1"" checked>Clicca qui per aggiungere l'email footer.</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ colspan=""2"" align=""center""><input type=""submit"" value=""Invia E-Mail"" id=""submit1"" name=""submit1"" tabindex=""3""><input type=""reset"" value=""Cancella"" id=""reset1"" name=""reset1"" tabindex=""4""></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </form>" & vbNewLine
end if
%>
grazie mille