![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi, everyone, just got an annoying problem :
When I run this Outlook.asp file, it generates a temporary .htm file in Temporary Internet Folder and caught as BloodHound Virus by Symantec every time. Is there a way out, thanks a lot. script language="vbscript" Option Explicit Const olMailItem = 0 Const olOriginator = 0 '------------------------------------------------------------------------------ Sub SendMailOutlook(strTo, strSubject, strTextBody, strAttachment) 'Create an Outlook object Dim objOutlook Dim session Dim al Set objOutlook = CreateObject("Outlook.Application") ' The following 2 lines seem pointless but solve the problem discussed in MS KB329765 ' the issue is a security warning dialog appears about a program accessing Outloook address list (i.e may be a virus etc) Set session = objOutlook.Session ' create persistent Outlook session to avoid security dialog Set al = objOutlook.session.addressLists("Global Address List") 'Create a new message Dim objMessage 'Set objMessage = objOutlook.session.CreateItem(olMailItem) Set objMessage = objOutlook.CreateItem(olMailItem) With objMessage .Recipients.Add (strTo) .Subject = strSubject .Body = strTextBody if Len(strAttachment) 2 then .attachments.add (strAttachment) end if .ReadReceiptRequested = TRUE .Display End With Set objMessage = nothing Set objOutlook = nothing End Sub 'SendMailOutlook '------------------------------------------------------------------------------ /script % Response.write("script language=""vbscript""" & Chr(10)) Response.write("Dim strTo" & Chr(10)) Response.write("Dim strSubject" & Chr(10)) Response.write("Dim strMessage" & Chr(10)) Response.write("Dim strAttachment" & Chr(10)) Response.write("strTo = """ & request("to") & """" & Chr(10)) Response.write("strSubject = """ & request("subject") & """" & Chr(10)) Response.write("strMessage = """ & request("message") & """" & Chr(10)) Response.write("strAttachment = """ & request("attachment") & """" & Chr(10)) Response.write("Call SendMailOutlook (strTo, strSubject, strMessage, strAttachment)" & Chr(10)) Response.write("/script" & Chr(10)) % script language="Javascript" // self.close(); /script |
Ads |
#2
|
|||
|
|||
![]()
In article . com,
ITIntelligence wrote: ' the issue is a security warning dialog appears about a program accessing Outloook address list (i.e may be a virus etc) Set session = objOutlook.Session ' create persistent Outlook session to avoid security dialog Set al = objOutlook.session.addressLists("Global Address List") Probably the most reasonable thing to do is to use Redemption objects. See www.dimastr.com/redemption -- Hollis Paul Mukilteo, WA USA |
#3
|
|||
|
|||
![]()
Check to see whether the Symantec application has an option to turn off script blocking.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "ITIntelligence" wrote in message ups.com... Hi, everyone, just got an annoying problem : When I run this Outlook.asp file, it generates a temporary .htm file in Temporary Internet Folder and caught as BloodHound Virus by Symantec every time. Is there a way out, thanks a lot. script language="vbscript" Option Explicit Const olMailItem = 0 Const olOriginator = 0 '------------------------------------------------------------------------------ Sub SendMailOutlook(strTo, strSubject, strTextBody, strAttachment) 'Create an Outlook object Dim objOutlook Dim session Dim al Set objOutlook = CreateObject("Outlook.Application") ' The following 2 lines seem pointless but solve the problem discussed in MS KB329765 ' the issue is a security warning dialog appears about a program accessing Outloook address list (i.e may be a virus etc) Set session = objOutlook.Session ' create persistent Outlook session to avoid security dialog Set al = objOutlook.session.addressLists("Global Address List") 'Create a new message Dim objMessage 'Set objMessage = objOutlook.session.CreateItem(olMailItem) Set objMessage = objOutlook.CreateItem(olMailItem) With objMessage .Recipients.Add (strTo) .Subject = strSubject .Body = strTextBody if Len(strAttachment) 2 then .attachments.add (strAttachment) end if .ReadReceiptRequested = TRUE .Display End With Set objMessage = nothing Set objOutlook = nothing End Sub 'SendMailOutlook '------------------------------------------------------------------------------ /script % Response.write("script language=""vbscript""" & Chr(10)) Response.write("Dim strTo" & Chr(10)) Response.write("Dim strSubject" & Chr(10)) Response.write("Dim strMessage" & Chr(10)) Response.write("Dim strAttachment" & Chr(10)) Response.write("strTo = """ & request("to") & """" & Chr(10)) Response.write("strSubject = """ & request("subject") & """" & Chr(10)) Response.write("strMessage = """ & request("message") & """" & Chr(10)) Response.write("strAttachment = """ & request("attachment") & """" & Chr(10)) Response.write("Call SendMailOutlook (strTo, strSubject, strMessage, strAttachment)" & Chr(10)) Response.write("/script" & Chr(10)) % script language="Javascript" // self.close(); /script |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Turn off Symantec Fax Starter but preserv Outlook e-mail settings | Annie Best | Outlook - Installation | 3 | August 23rd 06 03:57 AM |
Uninstall of Symantec Corporate 9 breaks Outlook 2003 | Darryl Elwin | Outlook - General Queries | 3 | April 22nd 06 05:44 AM |
Another problem with Symantec & Outlook | JohnM | Outlook - General Queries | 1 | February 24th 06 02:45 PM |
Outlook 2000 pro opens for 2 users but not third. Virus checked a. | lospring | Outlook - Installation | 0 | January 30th 06 04:01 PM |
Symantec Add-In | FSUNoles68 | Add-ins for Outlook | 1 | January 24th 06 12:39 AM |