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

A

Alan Moseley

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
 
V

venu

Thanks a lot for your responce its working.

Alan Moseley said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top