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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Managing messages before sending



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 26th 08, 05:58 PM posted to microsoft.public.outlook.program_vba
Markus
external usenet poster
 
Posts: 28
Default Managing messages before sending

I have had to develop an email system without the use of Outlook, but would
like to see if I can integrate the same functionality using Outlook to take
advantage of the extensive OL email features.

My need is to be able to capture outgoing email before it is sent in order
to merge data from a table, and in order to save the final version of the
email message into a table. The saved version must include any edits done by
the user before they clicked on send in OL.

As near as I can tell, this is not possible cause once you run OL from
another app, OL takes over and if user clicks on Send in their OL editor
(e.g., Word) the edited message goes out. That is, when the user clicks on
Send and before the message goes out, I would like to replace certain strings
that I identify as table fields with info from the table, and would like to
save that final msg version to a table.

Anyone have any ideas on how I might do this, or even if it would be possible?
Thanks in advance for any suggestions,
Mark
Ads
  #2  
Old May 26th 08, 06:04 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Managing messages before sending

You can use the Application.ItemSend event from the Outlook object model to work with the message after the user clicks Send.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Markus" wrote in message news
I have had to develop an email system without the use of Outlook, but would
like to see if I can integrate the same functionality using Outlook to take
advantage of the extensive OL email features.

My need is to be able to capture outgoing email before it is sent in order
to merge data from a table, and in order to save the final version of the
email message into a table. The saved version must include any edits done by
the user before they clicked on send in OL.

As near as I can tell, this is not possible cause once you run OL from
another app, OL takes over and if user clicks on Send in their OL editor
(e.g., Word) the edited message goes out. That is, when the user clicks on
Send and before the message goes out, I would like to replace certain strings
that I identify as table fields with info from the table, and would like to
save that final msg version to a table.

Anyone have any ideas on how I might do this, or even if it would be possible?
Thanks in advance for any suggestions,
Mark

  #3  
Old May 28th 08, 05:23 AM posted to microsoft.public.outlook.program_vba
Markus
external usenet poster
 
Posts: 28
Default Managing messages before sending

Sue,

Don't suppose you know of some vba code out there that may use Itemsend. An
example would help me get started.

Thanks,
Mark


"Sue Mosher [MVP-Outlook]" wrote:

You can use the Application.ItemSend event from the Outlook object model to work with the message after the user clicks Send.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Markus" wrote in message news
I have had to develop an email system without the use of Outlook, but would
like to see if I can integrate the same functionality using Outlook to take
advantage of the extensive OL email features.

My need is to be able to capture outgoing email before it is sent in order
to merge data from a table, and in order to save the final version of the
email message into a table. The saved version must include any edits done by
the user before they clicked on send in OL.

As near as I can tell, this is not possible cause once you run OL from
another app, OL takes over and if user clicks on Send in their OL editor
(e.g., Word) the edited message goes out. That is, when the user clicks on
Send and before the message goes out, I would like to replace certain strings
that I identify as table fields with info from the table, and would like to
save that final msg version to a table.

Anyone have any ideas on how I might do this, or even if it would be possible?
Thanks in advance for any suggestions,
Mark


  #4  
Old May 28th 08, 05:42 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Managing messages before sending

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
MsgBox Item.Subject
End Sub

As with any event, a good place to start is the topic in Help.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Markus" wrote in message ...
Sue,

Don't suppose you know of some vba code out there that may use Itemsend. An
example would help me get started.

Thanks,
Mark


"Sue Mosher [MVP-Outlook]" wrote:

You can use the Application.ItemSend event from the Outlook object model to work with the message after the user clicks Send.




"Markus" wrote in message news
I have had to develop an email system without the use of Outlook, but would
like to see if I can integrate the same functionality using Outlook to take
advantage of the extensive OL email features.

My need is to be able to capture outgoing email before it is sent in order
to merge data from a table, and in order to save the final version of the
email message into a table. The saved version must include any edits done by
the user before they clicked on send in OL.

As near as I can tell, this is not possible cause once you run OL from
another app, OL takes over and if user clicks on Send in their OL editor
(e.g., Word) the edited message goes out. That is, when the user clicks on
Send and before the message goes out, I would like to replace certain strings
that I identify as table fields with info from the table, and would like to
save that final msg version to a table.

Anyone have any ideas on how I might do this, or even if it would be possible?
Thanks in advance for any suggestions,
Mark


  #5  
Old August 20th 08, 10:31 PM posted to microsoft.public.outlook.program_vba
Shri
external usenet poster
 
Posts: 1
Default Managing messages before sending

Hello,
I am trying to capture every mail item when I click on the "send"
button and append a disclaimer based on the receipient to the mailitem using
VBA. In this regard, I tried to implement your code below but the code is
never initiated. What am I doing wrong?

Thanks,
Srikanth

"Sue Mosher [MVP-Outlook]" wrote:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
MsgBox Item.Subject
End Sub

As with any event, a good place to start is the topic in Help.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Markus" wrote in message ...
Sue,

Don't suppose you know of some vba code out there that may use Itemsend. An
example would help me get started.

Thanks,
Mark


"Sue Mosher [MVP-Outlook]" wrote:

You can use the Application.ItemSend event from the Outlook object model to work with the message after the user clicks Send.




"Markus" wrote in message news I have had to develop an email system without the use of Outlook, but would
like to see if I can integrate the same functionality using Outlook to take
advantage of the extensive OL email features.

My need is to be able to capture outgoing email before it is sent in order
to merge data from a table, and in order to save the final version of the
email message into a table. The saved version must include any edits done by
the user before they clicked on send in OL.

As near as I can tell, this is not possible cause once you run OL from
another app, OL takes over and if user clicks on Send in their OL editor
(e.g., Word) the edited message goes out. That is, when the user clicks on
Send and before the message goes out, I would like to replace certain strings
that I identify as table fields with info from the table, and would like to
save that final msg version to a table.

Anyone have any ideas on how I might do this, or even if it would be possible?
Thanks in advance for any suggestions,
Mark


 




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
sending messages out using out look will not go out. justme12 Outlook - Installation 1 January 6th 08 11:12 PM
Sending messages - test works, real messages time out....Marti Marti Outlook - General Queries 0 April 9th 07 02:40 PM
Sending messages Barattolo_67 Outlook Express 4 March 12th 07 04:27 PM
Managing the 'From' Field In Outlook Messages spm Outlook - Using Forms 1 May 27th 06 03:23 PM
managing OE messages spanning the past 4 years. Ian R Outlook Express 5 April 12th 06 03:16 AM


All times are GMT +1. The time now is 08:16 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.