home *** CD-ROM | disk | FTP | other *** search
/ CD Shareware Magazine 1999 April / CD_Shareware_Magazine_31.iso / WIN95 / INTERNET / ftpctrl3b8.exe / %MAINDIR% / Scripts / Example23.ftp < prev    next >
Encoding:
Text File  |  1999-02-07  |  1.3 KB  |  38 lines

  1. ; *****************************************************
  2. ; Example23.ftp
  3. ; =============
  4. ; This example shows how to use the email message
  5. ; facilities TO SEND SELECTED FILES VIA EMAIL...
  6. ; -----------------------------------------------------
  7. ; NOTE: You must make appropriate changes to the
  8. ; script for it to work for you. You need to change
  9. ; at least the Mailhost, Sender's Address...
  10. ; Afterwards you can create a SendTo Menu item with 
  11. ; this example. This will allow you to send files 
  12. ; easily from Windows-Explorer via email to any
  13. ; recipient....
  14. ; -----------------------------------------------------
  15. ;
  16.  
  17. ; Add the selected files as attachments to an email:
  18. ALLPARAMS AddAttachment "%%ALLPAR%%" 
  19.  
  20. ; Various settings for the email to be correctly set:
  21. Let EmailServer = "mail.yourhost.net"
  22. Let EmailSender = "you@yourhost.net"
  23. Let EmailSubject = "Files attached..."
  24.  
  25. INPUT A "Type in a short text for the message:"
  26. Let EmailText = "%%A%%"
  27.  
  28. ; We need to know where to send the message to:
  29. INPUT A "Type the recipients email address:"
  30. AddRecipient "%%A%%" 
  31.  
  32. ; Additionally, you can have CC recipients, 
  33. ; but we'll skip it here:
  34. ;AddCCRecipient "CCrecipient@CCrecipients.net"
  35.  
  36. ; At last: send the message according to above:
  37. SendEmail
  38.