带有Persist.Mailsender错误的Server.createObject

时间:2012-11-16 14:17:42

标签: asp-classic vbscript

我在代码中遇到此行Set Mail = Server.CreateObject("Persits.MailSender")的问题。这段代码以前工作得很好。突然间它开始抛出一个错误,说明创建对象失败了。任何人都可以提出建议吗?

    Set Mail = Server.CreateObject("Persits.MailSender")" 
                ' enter valid SMTP host
    Mail.Host =  "smtpeu1-css.shell.com"
    Mail.From =  "SHIPLocalHost@shell.com"
    Mail.FromName = "SHIPLocalHost@shell.com"

    Mail.AddAddress  defaultTestEmail, defaultTestEmailName
    'If(len(emailCCEmail)>0)Then
        'Mail.AddAddress   defaultTestEmailCC , defaultTestEmailCCName
    'End If
    Mail.Subject = subject
    Mail.IsHTML = True
    'send an email for SSR
    Mail.Body= mailbody
    'Mail.AddAttachment "C:\Apps\SHIP from PROD\ship\ship\UploadedFiles\" & strFileName
    Mail.AddAttachment FilePath
    Mail.Send

0 个答案:

没有答案