J mail modtagere
Jeg har et script hvor jeg har alle modtagerene i BCC, derved skulle den kun vise modtagerens mailadresse ik?Hvis jeg sender til hotmail kommer det hele godt nok, men den viser: undisclosed-recipients:; i feltet TO
Hvorfor gør den det? Det er jMail...
Her er scriptet
If NOT rs.EOF Then
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.Lazysend = true
JMail.ServerAddress = "mail...dk"
JMail.Sender = Fra
JMail.Subject = Subjekt
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.HtmlBody = MailBody
' 1 - highest priority (Urgent)
' 3 - normal
' 5 - lowest
JMail.Priority = 1
JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
' Send it...
JMail.Execute
End if
Conn.Close
Set Conn = Nothing
