; *****************************************************
; Example21.ftp
; =============
; This example shows how to use the email message
; facilities...
; -----------------------------------------------------
; NOTE: You will need to change the email addresses and
; server for this script to work for you....
; -----------------------------------------------------
;
; We'll have the message sending a file as a showcase:
AddAttachment "c:\autoexec.bat"
; Various settings for the email to be correctly set:
Let EmailServer = "mail.yourhost.net"
Let EmailSender = "you@yourhost.net"
Let EmailSubject = "Script message"
Let EmailText = "This is a test text"
Let EmailText = "%%EmailText%% %%NewLine%%sent from TransSoft’s"
Let EmailText = "%%EmailText%% %%NewLine%%Scripting Performer."
; We need to know where to send the message to:
AddRecipient "him@hishost.net" "John Deer"
; Additionally, you can have CC recipients,
; but we'll skip it here:
;AddCCRecipient "CCrecipient@CCrecipients.net"
; At last: send the message according to above:
SendEmail