Using Ron's code (which probably has saved thousands of manhours,thx Ron )
have the email saved in the drafts folder:
....
.Display 'either .Send or .Display
.Save
.Close olPromtForSave 'saves in Drafts folder
....
Then have the following in the Outlook projects module which will send all
the addressed mail in the Draft folder without having to open and send each
one, provided your drafts folder is one level below the parent folder:
Public Sub SendDrafts()
Dim draftItem As Long
Dim myOutlook As Outlook.Application
Dim myNameSpace As Outlook.NameSpace
Dim myFolders As Outlook.Folders
Dim myDraftsFolder As Outlook.MAPIFolder
'''''''send all items in the Drafts folder that are addressed
Set myOutlook = Outlook.Application
Set myNameSpace = myOutlook.GetNamespace("MAPI")
Set myFolders = myNameSpace.Folders
Set fdrInbox =
Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Parent
Set myDraftsFolder = myFolders(Format(fdrInbox, "@")).Folders("Drafts")
For draftItem = myDraftsFolder.Items.Count To 1 Step -1
If Len(Trim(myDraftsFolder.Items.Item(draftItem).To)) > 0 Then
myDraftsFolder.Items.Item(draftItem).Send
End If
Next draftItem
Set myDraftsFolder = Nothing
Set myNameSpace = Nothing
Set myOutlook = Nothing
MsgBox "Done", vbInformation, "Send Contents of Draft Folder"
End Sub
--
MacGuy
"Ron de Bruin" wrote:
> Start with this example
> http://www.rondebruin.nl/mail/folder2/files.htm
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>