Ideas PLEASE - vba sending email...

G

Guest

Morning All
I can read emails from outlook using code. I need to send on the received
email (with a reply) as you would from Outlook and I need to maintain the
formatting of the message (ie the body).

If I use the 'Linking' facility, the message is placed in a memo field (ie
no formatting). If I read the fields manually (vba) when I've got the
message body, whats the best way of holding / moving / managing it and
maintaining its formatting characters so that the person receiving the
re-sent mail sees it in its initial format?

I'm happy to write the message content to an external file but what type of
file would I write in order that the users could (hyperlink) to it and see
the body of the email as they would in Outlook?

In summary, I need my application to replace Outlook for receiving and
Sending emails - I've done all the work, I receive them, I send them BUT I
can't maintain the format characters within the message (eg colours, Fonts,
bold, italics and so on)

Any help GREATLY appreciated

PJB
 
G

Geoff

If you're using the Outlook object model, then the Outlook Mailitem object
has two properties that hold the contents of the email message; namely:

The Body property (plain text)
The HTMLBody property (contains formatting)

There are other object models that you may need to use (as the Outlook
object library does not contain all the advanced properties of an email or
other functionality), eg:

CDO (Collaboration Data Objects)
Extended MAPI

If you're programming in VB or VBA and want to use Extended MAPI or if you
want to avoid Outlook's security prompts, you'll need to use the Redemption
Object library (downloadable from www.dimastr.com/redemption). Redemption
is a wrapper around Extended MAPI.

For information on how to use these object libraries, check out the book:

"Microsoft Outlook Programming - Jumpstart for Administrators, Developers
and Power Users" by Sue Mosher. See also: www.slipstick.com

There are also Newsgroups for Outlook.

Regards
Geoff
 
G

Guest

I get alot of good info from OUTLOOKCODE.com. I have also had success using
mailenvelope.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top