home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 37 / IOPROG_37.ISO / SOFT / QSMTP.ZIP / Readme1st.txt < prev   
Encoding:
Text File  |  2000-04-03  |  2.6 KB  |  84 lines

  1. QuickSMTP2
  2.  
  3.  
  4. QSMTP2.dll (Evaluation Version) Copyright 2000 Craig Gill
  5.  
  6. This .dll is a win32 .dll compiled in release mode.  It's functions perform
  7. internet email from within an application.
  8.  
  9. QSMTP2.dll  48k  04/03/2000  07:05pm CST
  10.  
  11.  
  12.  
  13. Exported Functions:
  14.  
  15. SendEmail - Executes the sending of an email message provided all the needed properties are set.
  16.  
  17.  
  18. Here's is some basic code to help get you started using the .dll:
  19.  
  20. Note: You must copy QSMTP2.dll to your C:\WINDOWS\SYSTEM directory or provide the full path 
  21. to the .dll when declaring it in your .bas module.
  22.  
  23. Sample code for a form:
  24. ____________________________________________________
  25. Option Explicit
  26.  
  27. Private Sub SendAMessage_Click()
  28. Dim t As Long
  29.  
  30. t = SendEmail("mailservername", "yourname", "youremailaddress", "recipientsname", "recipientsemailaddress", "subject", "bodyofmessage", "3", "0")
  31. If t = 100 Then
  32.     MsgBox "Message sent!"
  33. End If
  34. If t < 100 Then
  35.     Select Case (t)
  36.     Case 1
  37.         MsgBox "Missing mailservername" & "Message not sent!"
  38.     Case 2
  39.         MsgBox "Missing mailfromname" & "Message not sent!"
  40.     Case 3
  41.         MsgBox "Missing mailfromemail" & "Message not sent!"
  42.     Case 4
  43.         MsgBox "Missing mailtoname" & "Message not sent!"
  44.     Case 5
  45.         MsgBox "Missing mailtoemail" & "Message not sent!"
  46.     Case 6
  47.         MsgBox "Missing mailsubject" & "Message not sent!"
  48.     Case 7
  49.         MsgBox "Missing mailbody" & "Message not sent!"
  50.     Case Else
  51.         MsgBox "Message not sent!"
  52.     End Select
  53. End If
  54.  
  55.  
  56. End Sub
  57. _____________________________________________________
  58.  
  59.  
  60.  
  61.  
  62. Sample code for the .bas module (required):
  63. _____________________________________________________
  64.  
  65. Public Declare Function SendEmail Lib "qsmtp2.dll" (ByVal ServerName As String, ByVal MailFromName As String, ByVal MailFromEmail As String, ByVal MailToName As String, ByVal MailToEmail As String, ByVal MailSubject As String, ByVal MailBody As String, ByVal MailPriority As Integer, ByVal Logging As Integer) As Long
  66.  
  67. _____________________________________________________
  68.  
  69.  
  70. * Note:  The "3" property of the SendEmail function is the X-Priority of the message, default is 3
  71. high priority is 2 or 1.
  72.      The "0" property of the SendEmail function is whether or not to create a logfile during the
  73. SendEmail function, "0" is off, "1" is on.
  74.  
  75. ** Note:  This win32 .dll was created using Microsoft Visual C++ 6.0 Service Pack 2.
  76.  
  77. At this time there are no plans to add file attachment ability to this .dll.
  78.  
  79. You can contact me directly for help or bug reports or to just comment on it:
  80. cgill@startext.net
  81.  
  82.  
  83.  
  84.