/ Forside / Teknologi / Udvikling / VB/Basic / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
VB/Basic
#NavnPoint
berpox 2425
pete 1435
CADmageren 1251
gibson 1230
Phylock 887
gandalf 836
AntonV 790
strarup 750
Benjamin... 700
10  tom.kise 610
Lotus notes og mail
Fra : Jens


Dato : 03-12-01 23:57

Denne funktion sender en mail i lotus notes, hvordan sætter jeg skrifttypen
på teksten i mailen ???


Public Function SendMail(byval Tomailadd As String, byval MailSub As String,
byval MailBody As String) As Object

Dim oSess As Object
Dim oDB As Object
Dim oDoc As Object
Dim oItem As Object
Dim direct As Object
Dim Var As Variant
Dim Body As String

Set oSess = CreateObject("Notes.NotesSession")
Set oDB = oSess.GETDATABASE("", "")
Call oDB.OPENMAIL
Set oDoc = oDB.CREATEDOCUMENT
Set oItem = oDoc.CREATERICHTEXTITEM("BODY")
oDoc.Form = "Memo"
oDoc.Subject = MailSub
oDoc.sendto = Tomailadd
oDoc.Body = MailBody
oDoc.postdate = Date
oDoc.visable = True
oDoc.SEND False
Set oSess = Nothing
Set oDB = Nothing
Set oDoc = Nothing
Set oItem = Nothing

End Function




 
 
Morten Fast (06-12-2001)
Kommentar
Fra : Morten Fast


Dato : 06-12-01 22:45


"Jens" <til@infojens.dk> wrote in message
news:3c0c0317$0$81742$edfadb0f@dspool01.news.tele.dk...
> Denne funktion sender en mail i lotus notes, hvordan sætter jeg
skrifttypen
> på teksten i mailen ???

1. Opret et NotesRichTextStyle-objekt.

2. Sæt formatteringen som ønsket.

3. Send objektet som parameter til AppendStyle-funktionen på
NotesRichTextItem-objektet.

--
Vh Morten



Søg
Reklame
Statistik
Spørgsmål : 177511
Tips : 31968
Nyheder : 719565
Indlæg : 6408598
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste