On error & Jmail
Set JMail = Server.CreateObject("JMail.SMTPMail")JMail.Lazysend = true
JMail.ServerAddress = "mail.xxx.dk"
JMail.Sender = "xxx@xxx.nu"
JMail.Subject = Subjekt
JMail.AddRecipient Etstr
do while not rs.EOF
on error resume next
JMail.AddRecipientBCC rs("Email")
rs.MoveNext
loop
rs.Close
set rs = Nothing
' The body property is bodth read and write.
' If you want to append text to the body you can
' use JMail.Body = JMail.Body & "Hello world!"
' or you can use JMail.AppendText "Hello World!"
' which in many cases is easier to use.
JMail.Body = MailBody
' 1 - highest priority (Urgent)
' 3 - normal
' 5 - lowest
JMail.Priority = 1
JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
' Send it...
JMail.Execute
Mit spm er ret enkelt...med "On Error Resume Next" Har jeg sikret at hvis en bruger har skrevet en ugyldig email adresse, at den sender alle aligevel ik?
