eh,ci ho provato ma non è che mi sia servito a molto,perchè inserendo i br devo anche inserire i tag <html> e </html> (sennò il
viene preso comunque?) e poi non vedevo più niente nella mia mail.
comunque tu dici di fare così:
codice:
<html>
do while not rs.EOF
email = rs("Email")
sTo= email
sFrom = "info@centropopolareeuropeo.com"
sSubject = "Messaggio dal sito CentroPopolareEuropeo.com"
sMessage = vbcrlf _
& "Web Form from CentroPopolareEuropeo.com" & vbcrlf _
& vbcrlf _
& Message & vbcrlf _
& vbcrlf _
& "Data :" & data & vbcrlf _
& vbcrlf _
%>
<%
& " Oggetto : " & oggetto & vbcrlf _
& vbcrlf _
%>
<%
& " Testo : " & testo & vbcrlf _
'& vbcrlf _
Set objNewMail = CreateObject("CDONTS.NewMail")
objNewMail.BodyFormat = 0
objNewMail.MailFormat = 0
objNewMail.Importance = 1
objNewMail.Send sFrom, sTo, sSubject, sMessage
Set objNewMail = Nothing
rs.movenext
loop
%>
</html>
facendo così mi da questo errore:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/admin/send-newsletter.asp, line 24
come posso quindi fare?