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

add some text into an email automatically



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 1st 06, 03:21 PM posted to microsoft.public.outlook.program_addins
Nader
external usenet poster
 
Posts: 29
Default add some text into an email automatically

Hi,

I'd like to add some text to the body of an e-mail after the user as click
on the send button. What is the best way to do that.

Thanks in advance.


  #2  
Old May 2nd 06, 06:29 AM posted to microsoft.public.outlook.program_addins
Thaddaeus Parker
external usenet poster
 
Posts: 17
Default add some text into an email automatically

Your best bet would be override the Send event for the current Item
Inspector and then add your text. I have seen the process written here
before, but for the life of me can't remember it exactly.

I will do some research and give you a definitive answer later today.

Regards,

Thaddaeus.
"Nader" wrote in message
...
Hi,

I'd like to add some text to the body of an e-mail after the user as click
on the send button. What is the best way to do that.

Thanks in advance.



  #4  
Old May 8th 06, 06:59 PM posted to microsoft.public.outlook.program_addins
Denis Crotty
external usenet poster
 
Posts: 4
Default add some text into an email automatically

Hi,

I am looking into a similar function where I need to check the subject of
the outgoing email, did you get an example to start from on over riding the
send event?

--
Denis Crotty
Application Developer



"Nader" wrote:

thanks a lot !
"Thaddaeus Parker" a écrit dans le message de
news: ...
Your best bet would be override the Send event for the current Item
Inspector and then add your text. I have seen the process written here
before, but for the life of me can't remember it exactly.

I will do some research and give you a definitive answer later today.

Regards,

Thaddaeus.
"Nader" wrote in message
...
Hi,

I'd like to add some text to the body of an e-mail after the user as
click on the send button. What is the best way to do that.

Thanks in advance.






  #5  
Old May 8th 06, 09:58 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default add some text into an email automatically

Private Sub Application_ItemSend _
(ByVal Item As Object, Cancel As Boolean)
Dim strMsg As String
Dim res As Long
If Item.Subject = "" Then
Cancel = True
strMsg = "Please fill in the subject before sending."
MsgBox strMsg, _
vbExclamation + vbSystemModal, "Missing Subject"
Item.Display
End If
End Sub

For a more elaborate version that also checks for expected attachments, see http://www.outlookcode.com/codedetail.aspx?id=553

And for VBA basics, see http://www.outlookcode.com/d/vbabasics.htm


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Denis Crotty" wrote in message ...
Hi,

I am looking into a similar function where I need to check the subject of
the outgoing email, did you get an example to start from on over riding the
send event?

--
Denis Crotty
Application Developer



"Nader" wrote:

thanks a lot !
"Thaddaeus Parker" a écrit dans le message de
news: ...
Your best bet would be override the Send event for the current Item
Inspector and then add your text. I have seen the process written here
before, but for the life of me can't remember it exactly.

I will do some research and give you a definitive answer later today.

Regards,

Thaddaeus.
"Nader" wrote in message
...
Hi,

I'd like to add some text to the body of an e-mail after the user as
click on the send button. What is the best way to do that.

Thanks in advance.






  #6  
Old May 8th 06, 11:03 PM posted to microsoft.public.outlook.program_addins
Denis Crotty
external usenet poster
 
Posts: 4
Default add some text into an email automatically

How about in VB.NET? Do I start with implementing the IDTExtensibility2
interface?

How do I capture the new Mail event? Is that an inspector? Is this
documented somewhere?

I assume many people have written addins that check a property of every
outgoing message but I cannot seem to find an example to start from.


--
Denis Crotty
Application Developer



"Sue Mosher [MVP-Outlook]" wrote:

Private Sub Application_ItemSend _
(ByVal Item As Object, Cancel As Boolean)
Dim strMsg As String
Dim res As Long
If Item.Subject = "" Then
Cancel = True
strMsg = "Please fill in the subject before sending."
MsgBox strMsg, _
vbExclamation + vbSystemModal, "Missing Subject"
Item.Display
End If
End Sub

For a more elaborate version that also checks for expected attachments, see http://www.outlookcode.com/codedetail.aspx?id=553

And for VBA basics, see http://www.outlookcode.com/d/vbabasics.htm


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Denis Crotty" wrote in message ...
Hi,

I am looking into a similar function where I need to check the subject of
the outgoing email, did you get an example to start from on over riding the
send event?

--
Denis Crotty
Application Developer



"Nader" wrote:

thanks a lot !
"Thaddaeus Parker" a écrit dans le message de
news: ...
Your best bet would be override the Send event for the current Item
Inspector and then add your text. I have seen the process written here
before, but for the life of me can't remember it exactly.

I will do some research and give you a definitive answer later today.

Regards,

Thaddaeus.
"Nader" wrote in message
...
Hi,

I'd like to add some text to the body of an e-mail after the user as
click on the send button. What is the best way to do that.

Thanks in advance.







 




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
Paste Text into Outlook Email gives icon not text Chad Outlook - General Queries 6 April 26th 06 10:01 PM
can you add addresses in word documents automatically to outlo Sue Manning-Jones Outlook - Using Contacts 5 March 9th 06 10:19 PM
How can I automatically add people I reply to, to contacts list pencilfan Outlook - Using Contacts 2 March 5th 06 09:33 PM
How to automatically forward news to an email add?? (plz note that news not email) thanks [email protected] Outlook - General Queries 1 February 24th 06 02:24 PM
automatically add a contact to the journal T8ntlikly Outlook - Using Contacts 0 January 12th 06 01:52 PM


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