|
-
Jul 29th, 2005, 01:41 PM
#1
Thread Starter
Member
Outlook: How to get mail from Sent Items when Send is clicked
Hi,
I would like to get the latest sent mail from the sent items when the Send button is clicked.
I have tried to save the item in the Outlook_ItemSend(mail as object, cancel as boolean) event procedure but the issues is the message is not sent until the statements in the event procedure is done .
if i use
mail (Mailitem).SAVE method it save as a mail yet to send format. I want it in a format that is Sent items folder.
thanks
Adhi
Last edited by adhavanv; Aug 3rd, 2005 at 10:26 AM.
-
Jul 30th, 2005, 01:52 PM
#2
Re: Outlook: How to get mail from Sent Items when Send is clicked
You can create an event ItemAdd for a specific folder. It will fire whenever a new item is added to the folder (collection). Then you dont need to try to deal with the Send event at all.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 31st, 2005, 07:31 PM
#3
Thread Starter
Member
Re: Outlook: How to get mail from Sent Items when Send is clicked
If you could send me code it would be great.
Thanks
Adhi
-
Jul 31st, 2005, 10:30 PM
#4
Re: Outlook: How to get mail from Sent Items when Send is clicked
I sent you a link to this code I already had posted that does just about what you need in a reply to your PM.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 3rd, 2005, 10:03 AM
#5
Thread Starter
Member
Re: Outlook: How to get mail from Sent Items when Send is clicked
Thanks a lot.i really helped
-
Aug 3rd, 2005, 10:16 AM
#6
Re: Outlook: How to get mail from Sent Items when Send is clicked
Your welcome
Ps, dont forget to edit your original post subject icon to the green checkmark icon so others will know at the forum view level that your question has been answered.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|