Changing the Font in an Outlook Mailitem

I am trying to change the font of an email i have generated in code buut i can't seem to find where i set the font.  does anyone have any ideas?

thanks.
rauchsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RuchiCommented:
From the web:

Place a command button on the form..

Private Sub Command1_Click()
    Dim oOutLook As New Outlook.Application
    Dim oMail As Outlook.MailItem
   
    Set oMail = oOutLook.CreateItem(olMailItem)
    oMail.To = "Rauchs"
    With RichTextBox1
        .Text = ""
        .SelFontName = "Courier New"
        .SelFontSize = 24
        .SelColor = vbRed
        .SelText = "Your Message"
    End With
    oMail.Body = RichTextBox1.TextRTF
    oMail.Send
End Sub
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rauchsAuthor Commented:
Wow!

What a great workaround!

thanks

steve
0
rauchsAuthor Commented:
Ruchi!

it doesn't work, It simply inserts the RTF text with all the slashes etc

eg

Tahoma;}{\f4\fswiss Courier;}{\f5\fswiss MS Sans Serif;}}
{\colortbl\red0\green0\blue0;\red255\green0\blue0;}
\deflang2057\horzdoc{\*\fchars }{\*\lchars }\pard\plain\f4\fs20\cf1

please advise on how to make outlook recognise that is should translate the text into rtf

thanks

steve
0
RuchiCommented:
I am not sure if this is working or not...


Private Sub Command1_Click()
    Dim oOutLook As New Outlook.Application
    Dim oMail As Outlook.MailItem
     
    Set oMail = oOutLook.CreateItem(olMailItem)

With oMail
 .To = "Rauchs"
 .Body = RichTextBox1.Text = ""
 .Body = RichTextBox1.SelFontName = "Courier New"
 .Body = RichTextBox1.SelFontSize = 24
 .Body = RichTextBox1.SelColor = vbRed
 .Body = RichTextBox1.SelText = "Your Message"
 .Send
End With

End Sub
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.