Alaska Software Inc. - Reading mail
Username: Password:
AuthorTopic: Reading mail
Adrian WykrotaReading mail
on Fri, 04 Jul 2003 17:25:15 +0200
How can I read post in HTML/RTF format ?

oMail := oPop3:GetMessage(1)
 SaveContentMail(oMail)

STATIC PROCEDURE SaveContentMail(oMail)
LOCAL aContent := {}, Licznik := 0, oContent, cFile := ""
aContent := oMail:GetContent()
FOR Licznik := 1 TO LEN(aContent)
  oContent := aContent[Licznik]
  SaveLogSys("Multipart : " + IF(oContent:IsMultiPart(), "Yes", "No"))
  SaveLogSys("Type : " + oContent:GetContentType())
  cFile := oContent:GetFileName()
  SaveLogSys("File : " + IF(cFile = NIL, "NIL", cFile))
  SaveLogSys("Coding : " + oContent:GetContentTransferEncoding())
  SaveLogSys(Var2Char(oContent:GetContent()))
NEXT
RETURN

result

04.07.2003;17:20:34: Multipart : No
04.07.2003;17:20:34: Type :
04.07.2003;17:20:34: File : NIL
04.07.2003;17:20:34: Coding :
04.07.2003;17:20:34: {MimeMessage}


--
Adrian Wykrota
Poland
http://www.systemy.comers.pl/alaska
Adrian WykrotaRe: Reading mail
on Fri, 04 Jul 2003 17:32:12 +0200
I use 1.82.0294 version

--
Adrian Wykrota
Poland
http://www.systemy.comers.pl/alaska