SET body = "The Upload Complete event was triggered on Robo-FTP Server. " + %crlf + %crlf SET body = body + "File: " + %event_uploadpath + " " + %crlf + %crlf SET body = body + "Size: " + %event_uploadfilesize + " " + %crlf + %crlf SET body = body + "User: " + %event_logonname + " " + %crlf + %crlf SET body = body + "Please do not reply to this message." SET err_msg = "" IFNUM= %event_uploadresult $ERROR_SUCCESS GOTO send_msg_now SET err_msg = "An error was reported. [" + %event_uploadresult + "] " + %crlf + %crlf :send_msg_now SET body = err_msg + body SET from = "Robo-FTP Server " SET subj = "File upload notice" SET email_sitename = "mycompany_email_config" SET to = "Steve Johnson " EMAIL body /server=email_sitename /subject=subj /from=from /to=to EXIT