A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook VBScript caught as Virus by Symantec every time



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 7th 06, 02:26 AM posted to microsoft.public.outlook.program_forms
ITIntelligence
external usenet poster
 
Posts: 1
Default Outlook VBScript caught as Virus by Symantec every time

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  
Old September 7th 06, 04:49 AM posted to microsoft.public.outlook.program_forms
Hollis Paul [MVP - Outlook]
external usenet poster
 
Posts: 138
Default Outlook VBScript caught as Virus by Symantec every time

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  
Old September 7th 06, 12:19 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook VBScript caught as Virus by Symantec every time

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 01:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.