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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

how to set outlook 2003to cannot send mail without subject,attachm



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 26th 08, 12:05 PM posted to microsoft.public.outlook.program_addins
venu[_2_]
external usenet poster
 
Posts: 2
Default how to set outlook 2003to cannot send mail without subject,attachm

how to set outlook 2003to cannot send mail without subject,attachment at
client side
  #2  
Old October 27th 08, 02:40 PM posted to microsoft.public.outlook.program_addins
Alan Moseley
external usenet poster
 
Posts: 61
Default how to set outlook 2003to cannot send mail without subject,attachm

Insert the following code into your ThisOutlookSession code window.

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim mi As MailItem
Set mi = Item
If mi.Subject = "" Or mi.Attachments.Count = 0 Then
Cancel = True
End If
set mi=Nothing
End Sub

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"venu" wrote:

how to set outlook 2003to cannot send mail without subject,attachment at
client side

  #3  
Old October 27th 08, 02:50 PM posted to microsoft.public.outlook.program_addins
venu[_2_]
external usenet poster
 
Posts: 2
Default how to set outlook 2003to cannot send mail without subject,att

Thanks a lot for your responce its working.

"Alan Moseley" wrote:

Insert the following code into your ThisOutlookSession code window.

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim mi As MailItem
Set mi = Item
If mi.Subject = "" Or mi.Attachments.Count = 0 Then
Cancel = True
End If
set mi=Nothing
End Sub

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"venu" wrote:

how to set outlook 2003to cannot send mail without subject,attachment at
client side

 




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
Runtime error when using SaveAsFile method to save Outlook attachm confused2 Outlook and VBA 7 September 1st 08 07:29 AM
User created distribution list not visible after upgrading from 2003to 2007 gctriveni@gmail.com Outlook and VBA 1 May 2nd 08 07:23 AM
Converting an email in HTML format to another for printing attachm Frank Outlook - Installation 1 November 15th 06 07:43 PM
outlook subject line - first letter disappears on send Beth Outlook - General Queries 9 September 27th 06 04:39 PM
Outlook Macro to Modify Subject and Send Message jaysonsch Outlook and VBA 4 September 27th 06 05:48 AM


All times are GMT +1. The time now is 11:21 PM.


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