Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPI Control (Can you edit text style - color,height,etc.)?

Status
Not open for further replies.

JH0401

Programmer
Apr 5, 2002
15
0
0
US
Hi everyone,

I have a question regarding the MAPI control in VB.
Can you edit the text style - color, height, etc. in
the emails you send? Any input or examples will be
greatly appreciated.

Thanks in advance,

Josh
 
you can set the send format to HTML which will allow you to use html tags to format the message in anyway you choose.

Here's a sample from one of my libraries that I created.

Code:
    With objMail
        .To = mSendTo
        .From = mSendFrom
        If Len(SendccAddr) > 0 Then
            .CC = SendccAddr
        End If
        If Len(SendBccAddr) > 0 Then
            .Bcc = SendBccAddr
        End If
        .Subject = MailSubject
        If SendAsHTML Then
            .BodyFormat = 0
            .MailFormat = 0
        End If
        .Body = MessageBody
    End With
 
Not with the vb mapi control you can't. I haven't found a way to to this, only with a third party control. Peter Meachem
peter @ accuflight.com

 
petermeachem

What is the third part control you use
to accomplish this?

 
I decided not to bother at the time, may revisit. I tried out htmlmailer from Didn't find any snags really except I don't think you can use attachments, not sure on that. Peter Meachem
peter @ accuflight.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top