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

Get Email Body without displaying email.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 19th 06, 11:00 AM posted to microsoft.public.outlook.program_vba
paul
external usenet poster
 
Posts: 197
Default Get Email Body without displaying email.

Hi
Is there a way to get the body of an email without displaying it?
ie creating a variable and setting the variable to be the body of a standard
email with the user's default signature?

I have tried:

Dim objBody as object= NewEmail.body
but objBody is nothing

Thanks
Ads
  #2  
Old September 19th 06, 02:15 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Get Email Body without displaying email.

Body is a string property, not an object property.

If the user is using an automatic signature, it will not be included in the text returned by Body or HTMLBody unless the message is first displayed.

--
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

"Paul" wrote in message ...
Hi
Is there a way to get the body of an email without displaying it?
ie creating a variable and setting the variable to be the body of a standard
email with the user's default signature?

I have tried:

Dim objBody as object= NewEmail.body
but objBody is nothing

Thanks

 




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
displaying pictures in body of e-mail Dermot Outlook - General Queries 1 March 28th 06 07:01 PM
Displaying the From details of an email Tosh Outlook - Using Contacts 0 February 25th 06 03:26 PM
Dragging an email to the Calendar drops the email body text yan Outlook - Calandaring 2 February 1st 06 02:23 AM
Displaying from: in new email messages [email protected] Outlook - General Queries 0 January 8th 06 12:21 PM
Displaying from: in new email messages [email protected] Outlook - General Queries 0 January 8th 06 12:13 PM


All times are GMT +1. The time now is 08:17 AM.


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.