Lexmark Document Distributor User Manual page 54

Lexmark document distributor software: user guide
Hide thumbs Also See for Document Distributor:
Table of Contents

Advertisement

Example:
When a script is accessed via a profile from a workstation using Select 'N' Send or from an MFP
requiring users to log in, the script can access information about who submitted this job. Otherwise,
the value of original.username is blank. The following script sends an e-mail indicating who the user
was when the value is available.
string MailMessage
if (original.username.Length() >0)
then
MailMessage = "This email was sent by " + original.username + "."
else
MailMessage = "This email was automatically generated by LDD."
endif
with EmailSMTP
.Server="mail.server.com"
.To="JoeSmith@foobarcompany.com"
.From="DocServer@lexmark.com"
.Subject="New Document"
.Message= MailMessage
.CharacterSet=LDD_SMTPCHARSET_US
.Attachments=original.document
.Go()
endwith
Result
Now the recipient of the e-mail will know which user submitted this job. For example, if an employee
with an ID of JWilson sends the job from their workstation the e-mail message will be, " This e-mail
was sent by JWilson."
50

Advertisement

Table of Contents
loading

Table of Contents