home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 35 / hot35.iso / ficheros / 9TOOL / SMTPOP32.ZIP / SMTPOP32.SR_ / SMTPOP32.SR
Text File  |  1998-02-23  |  8KB  |  122 lines

  1. $PBExportHeader$uo_smtpop.sru
  2. $PBExportComments$Smtp, Pop3 DLL declarations - Copyright (c) 1997 H&S Technology, Inc.  All Rights Reserved
  3. forward
  4. global type uo_smtpop from nonvisualobject
  5. end type
  6. end forward
  7.  
  8. global type uo_smtpop from nonvisualobject
  9. end type
  10. global uo_smtpop uo_smtpop
  11.  
  12. type prototypes
  13. // Declarations for SMTPOP32.DLL
  14. //  H&S Technology, Inc. 
  15. // Copyright (c) 1997 H&S Technology, Inc. All Rights Reserved. 
  16.  
  17. Function long smtp_Version() library "smtpop32.dll"
  18. Function long smtp_LoginMail(string hostname, string username, string mailid, string localdomain) library "smtpop32.dll"
  19. Function long smtp_InitMail(long lHandle) library "smtpop32.dll"
  20. Function long smtp_To(long lHandle, string touser) library "smtpop32.dll"
  21. Function long smtp_Cc(long lHandle, string cc) library "smtpop32.dll"
  22. Function long smtp_Bcc(long lHandle, string bcc) library "smtpop32.dll"
  23. Function long smtp_Subject(long lHandle, string subject) library "smtpop32.dll"
  24. Function long smtp_OpenData(long lHandle) library "smtpop32.dll"
  25. Function long smtp_WriteData(long lHandle, ref string buffer) library "smtpop32.dll"
  26. Function long smtp_WriteRawData(long lHandle, ref string buffer) library "smtpop32.dll"
  27. Function long smtp_CloseData(long lHandle) library "smtpop32.dll"
  28. Function long smtp_MailBodyText(long lHandle, string buffer) library "smtpop32.dll"
  29. Function long smtp_Noop(long lHandle) library "smtpop32.dll"
  30. Function long smtp_Abort(long lHandle) library "smtpop32.dll"
  31. Function long smtp_Verify(long lHandle, string cmd, ref string buffer, long blen) library "smtpop32.dll"
  32. Function long smtp_Expand(long lHandle, string cmd, ref string buffer, long blen) library "smtpop32.dll"
  33. Function long smtp_Help(long lHandle, ref string cmd, ref string buffer, long blen) library "smtpop32.dll"
  34. Function long smtp_GetReply(long lHandle, ref string buffer, long blen) library "smtpop32.dll"
  35. Function long smtp_ReplyCode(long lHandle) library "smtpop32.dll"
  36. Function long smtp_LastMsg(ref string buffer, long blen) library "smtpop32.dll"
  37. Function long smtp_Quit(long lHandle) library "smtpop32.dll"
  38. Function long smtp_SendMail(long lHandle, string Touser, string Cc, string Bcc, &
  39.     string Subject,    string Msg, string att_files, long eflag) library "smtpop32.dll"
  40. Function long smtp_AddAttachFile(long lHandle, string fname, long file_type, ref string subtype, &
  41.     long encode_type) library "smtpop32.dll"
  42. Function long smtp_EnableLog(string logfile, long options) library "smtpop32.dll"
  43. Function long smtp_DisableLog() library "smtpop32.dll"
  44. Function long smtp_Date(long lHandle, string sdate) library "smtpop32.dll"
  45. Function long smtp_SetTimeZone(string tzone) library "smtpop32.dll"
  46. // New for version 2.1
  47. Function long smtp_SetTimeOut(long lHandle, long tval)library "smtpop32.dll"
  48. Function long smtp_DefaultTimeOut(long timeout)library "smtpop32.dll"
  49. Function long smtp_SetFromAddr(long lHandle, string from_addr)library "smtpop32.dll"
  50. Function long smtp_LoginMailPort(string hostname, long al_port, string username, string mail_id, &
  51.           string localdomain)library "smtpop32.dll"
  52. // New for version 2.2
  53. Function long smtp_SetProgressBar(long lHandle, long on_off)library "smtpop32.dll"
  54. Function long smtpop_DefaultProgressBar(long on_off)library "smtpop32.dll"
  55.  
  56. Function long pop3_NewHandle() library "smtpop32.dll"
  57. Function long pop3_Login(long lHandle, string hostname, string username, string password) library "smtpop32.dll"
  58. Function long pop3_LoginMail(string hostname, string username, string password) library "smtpop32.dll"
  59. Function long pop3_GetReply(long lHandle, ref string buffer, long blen) library "smtpop32.dll"
  60. Function long pop3_LastMsg(ref string buffer, long blen) library "smtpop32.dll"
  61. Function long pop3_Quit(long lHandle) library "smtpop32.dll"
  62. Function long pop3_MailStatus(long lHandle) library "smtpop32.dll"
  63. Function long pop3_ListMails(long lHandle) library "smtpop32.dll"
  64. Function long pop3_GetMailSize(long lHandle, long MsgNum) library "smtpop32.dll"
  65. Function long pop3_ResultsSize(long lHandle) library "smtpop32.dll"
  66. Function long pop3_GetResults(long lHandle, ref string buffer, long blen) library "smtpop32.dll"
  67. Function long pop3_RetrieveMail(long lHandle, long MsgNum) library "smtpop32.dll"
  68. Function long pop3_DeleteMail(long lHandle, long MsgNum) library "smtpop32.dll"
  69. Function long pop3_LastMailRead(long lHandle) library "smtpop32.dll"
  70. Function long pop3_ResetMail(long lHandle) library "smtpop32.dll"
  71. Function long pop3_Noop(long lHandle) library "smtpop32.dll"
  72. Function long pop3_GetMailHeader(long lHandle, ref string buffer, long blen, long startpos) library "smtpop32.dll"
  73. Function long pop3_GetMailFrom(long lHandle, ref string buffer, long blen, long startpos) library "smtpop32.dll"
  74. Function long pop3_GetMailTo(long lHandle, ref string buffer, long blen, long startpos) library "smtpop32.dll"
  75. Function long pop3_GetMailCc(long lHandle, ref string buffer, long blen, long startpos) library "smtpop32.dll"
  76. Function long pop3_GetMailSubject(long lHandle, ref string buffer, long blen, long startpos) library "smtpop32.dll"
  77. Function long pop3_GetMailDate(long lHandle, ref string buffer, long blen, long startpos) library "smtpop32.dll"
  78. Function long pop3_OpenMailFile(long lHandle, string ac_fname) library "smtpop32.dll"
  79. Function long pop3_QuickScanFile(long lHandle, string ac_fname) library "smtpop32.dll"
  80. Function long pop3_SaveAttachedTo(long lHandle, long Numb, string filename, &
  81.      long owflag) library "smtpop32.dll"
  82. Function long pop3_GetAttachCount(long lHandle) library "smtpop32.dll"
  83. Function long pop3_GetAttachedType(long lHandle, long Numb, ref string fcontent, &
  84.     long fclen, long startpos) library "smtpop32.dll"
  85. Function long pop3_GetAttachedName(long lHandle, long Numb, &
  86.     ref string fname, long flen, long startpos) library "smtpop32.dll"
  87. Function long pop3_RetrieveIntoFile(long lHandle, long MsgNum, string filename, &
  88.     long ovflag) library "smtpop32.dll"
  89. Function long pop3_OpenAttached(long lHandle, long Numb) library "smtpop32.dll"
  90. Function long pop3_ReadAttached(long lHandle, ref string buffer, long blen) library "smtpop32.dll"
  91. Function long pop3_OpenReadBodyText(long lHandle) library "smtpop32.dll"
  92. Function long pop3_ReadBodyText(long lHandle, ref string buffer, long blen) library "smtpop32.dll"
  93. // New for version 2.1
  94. Function long pop3_SetTimeOut(long lHandle, long tval)library "smtpop32.dll"
  95. Function long pop3_LoginPort(long lHandle,  string hostname, long al_port, &
  96.           string user, string pass)library "smtpop32.dll"
  97. Function long pop3_GetDispositionType(long lHandle,  long Numb, ref string ac_buffer, &
  98.           long al_blen, long startpos)library "smtpop32.dll"
  99. Function long pop3_GetDispositionFname(long lHandle,  long Numb, ref string ac_buffer, &
  100.           long al_blen, long startpos)library "smtpop32.dll"
  101. Function long pop3_GetPartHeaders(long lHandle,  long Numb, ref string ac_buffer, &
  102.           long al_blen, long startpos)library "smtpop32.dll"
  103. Function long pop3_GetHeaderField(long lHandle,  long Numb, string ac_header, ref string ac_buffer, &
  104.           long al_blen, long startpos)library "smtpop32.dll"
  105. Function long pop3_GetHeaderType(long lHandle,  long Numb, string ac_header, &
  106.           ref string ac_buffer, long al_blen, long startpos)library "smtpop32.dll"
  107. Function long pop3_GetParmValue(long lHandle,  long Numb, string ac_header, string ac_parm, &
  108.           ref string ac_buffer, long al_blen, long startpos)library "smtpop32.dll"
  109. Function long pop3_QuickScanMail(long lHandle,  long MsgNum)library "smtpop32.dll"
  110. // New for version 2.2
  111. Function long pop3_SetProgressBar(long lHandle, long on_off)library "smtpop32.dll"
  112.  
  113. end prototypes
  114. on uo_smtpop.create
  115. TriggerEvent( this, "constructor" )
  116. end on
  117.  
  118. on uo_smtpop.destroy
  119. TriggerEvent( this, "destructor" )
  120. end on
  121.  
  122.