TSL语言基础 > Object TSL > TSL内置对象使用大全 > Pop3对象 > Pop3对象的方法

RetrieveRaw    

简述

取邮件的原始内容。
定义
RetrieveRaw(MsgId:Integer;Var MsgContent:String):Boolean;
参数
名称类型说明
MsgIdinteger邮件ID
MsgContentString获取成功时返回的原始邮件内容
返回值Boolean获取邮件原始内容是否成功
  • 范例01:获取指定邮件的原始内容
    //创建pop3对象
    pop3Obj := new pop3("pop3.tinysoft.com.cn","username","password");
    ret := pop3Obj.RetrieveRaw(1,msg);
    if ret then return msg;
    else return "获取指定邮件内容失败!";

    //结果:
相关