hehe.. Du får lige den fulde kode...
Tror jeg har lavet det sådan der:
-----------------------------------------------
strSQL = "SELECT Email, Navn FROM nyhedsmail"
Set rs =Conn.Execute(strSQL)
if request.Form("TestMail") = "ON" then
arrEmail = request.form("TestMailAdr")
else
arrEmail = rs.GetRows()
end if
Conn.Close
Set Conn = Nothing
'For num = 0 to Ubound(arrEmail,2)
' Response.Write(arrMail)
'Next
Set objMail = Server.CreateObject("JMail.SMTPMail")
objMail.Silent = True
objMail.ServerAddress = "mail.minserver.dk"
objMail.Sender = "minemail.dk"
objMail.Subject = "Nyhedsmail"
For num = 0 to Ubound(arrEmail,2)
objMail.AddRecipient(arrEmail(0, num))
objMail.HTMLBody = "<html><head><title></title></head><body vlink='#000000' link='#666666' bgcolor='#000000'><table border='5' bordercolor='#FFFFFF' cellpadding='0' cellspacing='0' width='521' align='center'><tr><td><table border='0' cellpadding='0' cellspacing='0' width='521' height='106'><tr><td><img border='0' src='
http://www.hgf-fodbold.dk/image/nyhedsmail_top.gif' width='521'></td></tr><tr><td align='center' height='20' bgcolor='#ffffff'><table border='0' cellpadding='2' cellspacing='0'><tr><td><font face='verdana' size='2' color='000000'><b>Nyhedsmail fra Hørning GF</b><p>Til " & rs("navn") &" <p>" & Request.form("indhold") & "<p><hr><p>Se de nyeste nyheder her:<a href=http://www.hgf-fodbold.dk/nyheder.asp>Sidste nyt</a><p>Se de nyeste serie 3 kampreferater her:<a href=http://www.hgf-fodbold.dk/s3.asp>Serie 3 kampe</a><p>Se de nyeste serie 5 kampreferater her:<a href=http://www.hgf-fodbold.dk/s5.asp>Serie 5 kampe</a><p>Se Topscorelisten her:<a href=http://www.hgf-fodbold.dk/topscorer.asp>Topscorelisten</a><p><br><p>Med venlig hilsen<br><br>Hørning GF<br><a href=http://www.hgf-fodbold.dk>
www.hgf-fodbold.dk</a><hr><div align=center><font size=1 color='000000'>For at blive afmeldt nyhedsmailen <a href=http://www.hgf-fodbold.dk/nyhedsmail.asp>klik da her.</a></font></div></td></tr></table></td></tr></table></td></tr></table></body></html>" &arrEmail(1, num)
If objMail.Execute Then
Response.Write "<font color=green>" & arrEmail(0, num) & " (" & num & ") OK</font><br>"
Else
Response.Write "<font color=red>" & arrEmail(0, num) & " (" & num & ") FEJL</font><br>"
End If
objMail.ClearRecipients
Next
Set objMail = Nothing
------------------------------------
Request.form("indhold") kommer fra den foregående side, men den har virket helt fint indtil jeg begyndte med at have navnet med.. ;)
Tak for din tålmodighed...