Mit problem er at jeg er igang med en debatside (downloaded komponent) hvor man modtager en email når der er nyt i spørgsmålet. Og jeg har JMail der fungerer via smtp.worldonline.dk. Men dette kan jeg ikke få til at fungere:
Sub DoEmail(email, user_name)
\' ### Emails Topic Author if Requested.
\' ### This needs to be edited to use your own email component
\' ### if you don\'t have one, try the w3Jmail component from
www.dimac.net it\'s free!
Set smtp = Server.CreateObject(\"JMail.SMTPMail\")
MailServer = \"smtp.worldonline.dk\"
Recipients = email
Sender = \"Info@minside.dk\"
Subject = \"DebatForum - Svar på dit indlæg\"
msg = \"Hello \" & user_name & vbcrlf & vbcrlf
msg = msg & \"You have received a reply to your posting on the ASP Resources Forum.\"
msg = msg & \"Regarding the subject - \" & Request.Form(\"topic_title\") & \".\" & vbcrlf & vbcrlf
msg = msg & \"You can view the reply at \" & Request.Form(\"refer\") & vbcrlf
smtp.MailServer = MailServer
smtp.Recipients = Recipients
smtp.Sender = Sender
smtp.Subject = Subject
smtp.Message = msg
on error resume next \' Ignore Errors
smtp.SendMail2
Set smtp = Nothing
End Sub