Sub Mail_small_Text_Outlook()
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.TO = " aaa@aaa.pl"
.CC = ""
.BCC = ""
.Subject = "temat"
.body = ""
.BodyFormat = olFormatRichText ' <-------------
.send 'or use .Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
End Sub |