function checkcomp(str) on error resume next checkcomp = false Err = 0 dim checkobject set checkobject = Server.CreateObject(str) if 0 = Err then checkcomp = true end if set checkobject = nothing Err = 0 end function
if checkcomp(emailcomp(0)) then emailcomponent="ASPMail" elseif checkcomp(emailcomp(1)) then emailcomponent="CDONTS" else emailcomponent="CDONTS/ASPMail are not installed in your server." end if
'check if ASPMail if emailcomponent="ASPMail" then
Set mail = Server.CreateObject("SMTPsvg.Mailer") mail.ContentType = "text/html" mail.FromAddress = emailFromAddress mail.FromName = emailFromName mail.AddRecipient fullname, email mail.Subject = emailsub mail.BodyText = b mail.RemoteHost = ASPMailRemoteHost mail.SendMail Set Mail = Nothing
'check if CDONTS elseif emailcomponent="CDONTS" then
Set myMail = CreateObject("CDONTS.NewMail") myMail.From = emailFromName & "<" & emailFromAddress & ">" myMail.From = emailFromAddress myMail.To = email myMail.Subject = emailsub myMail.Body = b myMail.BodyFormat = 0 myMail.MailFormat = 0 myMail.Send Set myMail = Nothing end if
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
function checkcomp(str) on error resume next checkcomp = false Err = 0 dim checkobject set checkobject = Server.CreateObject(str) if 0 = Err then checkcomp = true end if set checkobject = nothing Err = 0 end function
if checkcomp(emailcomp(0)) then emailcomponent="ASPMail" elseif checkcomp(emailcomp(1)) then emailcomponent="CDONTS" else emailcomponent="CDONTS/ASPMail are not installed in your server." end if
'check if ASPMail if emailcomponent="ASPMail" then
Set mail = Server.CreateObject("SMTPsvg.Mailer") mail.ContentType = "text/html" mail.FromAddress = emailFromAddress mail.FromName = emailFromName mail.AddRecipient fullname, email mail.Subject = emailsub mail.BodyText = b mail.RemoteHost = ASPMailRemoteHost mail.SendMail Set Mail = Nothing
'check if CDONTS elseif emailcomponent="CDONTS" then
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.