How to implement Richtextstyle in web

hi all

im sending u a code. this code is sending mail when i run this code thru notes client it’s working and style is also working. but when i send it to rediff or yahoo the style is not working eg. color, font size & all.

please guide me???soon…


Dim session As New NotesSession

Dim db As NotesDatabase

Set db = session.CurrentDatabase

Dim doc As New NotesDocument(db)

Call doc.AppendItemValue(“From”, session.UserName)

Call doc.AppendItemValue(“Subject”, “Meeting time changed”)

Dim richStyle As NotesRichTextStyle

Set richStyle = session.CreateRichTextStyle

Dim richText As New NotesRichTextItem(doc, “Body”)

richStyle.FontSize = 12

Call richText.AppendStyle(richStyle)

Call richText.AppendText("The meeting is at ")

richStyle.FontSize = 16

richStyle.NotesColor=COLOR_BLUE

Call richText.AppendStyle(richStyle)

Call richText.AppendText(“3:00”)

richStyle.FontSize = 19

Call richText.AppendStyle(richStyle)

Call richText.AppendText(" not 2:00")

Call doc.Save(True, False)

Call doc.Send(False,"sanjay@demo78.v2solutions.com")


Subject: how to implement Richtextstyle in web

I don’t think that is possible with the RT classes. Have a look at Jake Howlett’s great “Sending HTML mails through SMTP” at Sending HTML mail via SMTP part 1 - Article - CodeStore

  • Johan

johan@kanngard.net

http://dev.kanngard.net