Public Function setEmailSend(ByVal sSubject As String, ByVal sBody As String, _
ByVal sTo As String) As Boolean
Dim oApp As Outlook._Application
Dim oMsg As Outlook._MailItem
setEmailSend = False
oApp = New Outlook.Application
oMsg = CType(oApp.CreateItem(Outlook.OlItemType.olMailItem), Outlook._MailItem)
oMsg.BodyFormat = Outlook.OlBodyFormat.olFormatRichText
oMsg.Subject = sSubject
oMsg.To = sTo
'here I need the current font
'then change it to Courier, 10
oMsg.Body = sBody
' then change back to originally set font
End function
paul1145 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.