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

  1. ; *****************************************************
  2. ; Example21.ftp
  3. ; =============
  4. ; This example shows how to use the email message
  5. ; facilities...
  6. ; -----------------------------------------------------
  7. ; NOTE: You will need to change the email addresses and 
  8. ; server for this script to work for you....
  9. ; -----------------------------------------------------
  10. ;
  11. ; We'll have the message sending a file as a showcase:
  12. AddAttachment "c:\autoexec.bat"
  13.  
  14. ; Various settings for the email to be correctly set:
  15. Let EmailServer = "mail.yourhost.net"
  16. Let EmailSender = "you@yourhost.net"
  17. Let EmailSubject = "Script message"
  18. Let EmailText = "This is a test text"
  19. Let EmailText = "%%EmailText%% %%NewLine%%sent from FTP Cnotrols"
  20. Let EmailText = "%%EmailText%% %%NewLine%%Scripting Performer."
  21.  
  22. ; We need to know where to send the message to:
  23. AddRecipient "him@hishost.net" "John Deer"
  24.  
  25. ; Additionally, you can have CC recipients, 
  26. ; but we'll skip it here:
  27. ;AddCCRecipient "CCrecipient@CCrecipients.net"
  28.  
  29. ; At last: send the message according to above:
  30. SendEmail
  31.