Per favore, riuscite a dirmi perchè il codice sotto riportato il quale crea e manda una tabella via emailnon funziona.
Se faccio il response.write a video risulta perfetta, mentre quando ricevo l'email me la ritrovo sballata.
dim sHTML : sHTML = ""
sHTML = "<html>"
sHTML = sHTML & "<table width=""950"" border=""1"" cellpadding=""1"" cellspacing=""1"" bordercolor=""#999999"">"
sHTML = sHTML & "<tr bgcolor=""#99CCFF""><td width=""31%"" height=""20""><div align=""center""><font color=""#003366""><strong><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"">XXXXX</font></strong></font></div></td>"
sHTML = sHTML & "<td width=""10%"" height=""20""> <div align=""center""><font color=""#003366""><strong><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"">XXXXXX</font></strong></font></div></td>"
sHTML = sHTML & "<td width=""8%"" height=""20""> <div align=""center""><font color=""#003366""><strong><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"">XXXXXX</font></strong></font></div></td>"
sHTML = sHTML & "<td width=""9%"" height=""20""> <div align=""center""><font color=""#003366""><strong><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"">XXXXX</font></strong></font></div></td>"
sHTML = sHTML & "<td width=""8%"" height=""20""> <div align=""center""><font color=""#003366""><strong><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"">XX</font></strong></font></div></td>"
sHTML = sHTML & "<td width=""9%"" height=""20""> <div align=""center""><font color=""#003366""><strong><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"">XXXXX</font></strong></font></div></td>"
sHTML = sHTML & "<td width=""8%"" height=""20""> <div align=""center""><font color=""#003366""><strong><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"">XX</font></strong></font></div></td>"
sHTML = sHTML & "<td width=""10%"" height=""20""> <div align=""center""><font color=""#003366""><strong><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"">XXXXX</font></strong></font></div></td>"
sHTML = sHTML & "<td width=""7%"" height=""20""> <div align=""center""><font color=""#003366""><strong><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"">XX</font></strong></font></div></td>"
sHTML = sHTML & "</tr>"
for i=1 to 30
sHTML = sHTML & "<tr>"
sHTML = sHTML & "<td width=""31%"" height=""20"" bgcolor=""#FFFFFF""><div align=""center""><font color=""#000066"" size=""2"" face=""Verdana, Arial, Helvetica, sans-serif"">" & i & "</font></div></td>"
sHTML = sHTML & "<td width=""10%"" height=""20"" bgcolor=""#FFFFFF""><div align=""center""><font color=""#000066"" size=""2"" face=""Verdana, Arial, Helvetica, sans-serif"">" & i & "</font></div></td>"
sHTML = sHTML & "<td width=""8%"" height=""20"" bgcolor=""#FFFFFF""><div align=""center""><font color=""#000066"" size=""2"" face=""Verdana, Arial, Helvetica, sans-serif"">" & i & "</font></div></td>"
sHTML = sHTML & "<td width=""9%"" height=""20"" bgcolor=""#99CC99""><div align=""center""><font color=""#000066"" size=""2"" face=""Verdana, Arial, Helvetica, sans-serif"">" & i & "</font></div></td>"
sHTML = sHTML & "<td width=""8%"" height=""20"" bgcolor=""#FFFFFF""><div align=""center""><font color=""#000066"" size=""2"" face=""Verdana, Arial, Helvetica, sans-serif"">" & i & "%" & "</font></div></td>"
sHTML = sHTML & "<td width=""9%"" height=""20"" bgcolor=""#FFCC00""><div align=""center""><font color=""#000066"" size=""2"" face=""Verdana, Arial, Helvetica, sans-serif"">" & i & "</font></div></td>"
sHTML = sHTML & "<td width=""8%"" height=""20"" bgcolor=""#FFFFFF""><div align=""center""><font color=""#000066"" size=""2"" face=""Verdana, Arial, Helvetica, sans-serif"">" & i & "%" & "</font></div></td>"
sHTML = sHTML & "<td width=""10%"" height=""20"" bgcolor=""#99CC99""><div align=""center""><font color=""#000066"" size=""2"" face=""Verdana, Arial, Helvetica, sans-serif"">" & i & "</font></div></td>"
sHTML = sHTML & "<td width=""7%"" height=""20"" bgcolor=""#FFFFFF""><div align=""center""><font color=""#000066"" size=""2"" face=""Verdana, Arial, Helvetica, sans-serif"">" & i & "%" & "</font></div></td>"
sHTML = sHTML & "</tr>"
next
sHTML = sHTML & "</table>"
sHTML = sHTML & "</html>"
'mandi l'email
.......
............
MiaMail.To = "xxxx@nnnn.it" 'destinatario
MiaMail.Subject = "Prova tabella"
MiaMail.From = "nd@nd.it" 'mittente
MiaMail.HTMLBody = 0
MiaMail.HTMLBody = sHTML
MiaMail.Send()