I cant seem to get my first line of the message to show:
HTML Code:MsgGreeting = EmailForm.TextBox2.Value & " " & Recipient '& vbCrLf & vbCrLf MsgContent = Msg & EmailForm.TextBox3.Text Set MItem = OutlookApp.CreateItem(olMailItem) With MItem .To = EmailAddr .Subject = Subj '.Body = Msg .BodyFormat = 2 'olFormatHTML .HTMLBody = "<font face='Arial color=red> " & MsgGreeting & " </font>" .HTMLBody = MItem.HTMLBody & vbCrLf & "<font face='Arial color=blue> " & MsgContent & " </font><br/>" .Display SendKeys ("%{s}") End With
this si not displayed at all
.HTMLBody = "<font face='Arial color=red> " & MsgGreeting & " </font>"
if I comment out the second line
.HTMLBody = MItem.HTMLBody & vbCrLf & "<font face='Arial color=blue> " & MsgContent & " </font><br/>"
then the first line shows up as text literal


Reply With Quote
