Output - putMail

 

Description

Takes an input product, turns it into an email message, and mails it to a specified address. No attempt is made to provide a mail bridge function by using this DIM and the getPOPMail PIM or the acceptSMTPMail PIM.

 

Configuration Variables

smtpHostName
The address of the SMTP server to use.

mailingList

A space delimited list of additional recipients. If any of the users do not have an account on the specified SMTP host then the user list should include the complete address. For example, assuming smtpHostName=mbunix.mitre.org, (mailingList harry jane sue) will become (harry@mbunix.mitre.org jane@mbunix.mitre.org sue@mbunix.mitre.org). On the other hand, (mailingList harry jane sue@netcom.com bob) will become (harry@mbunix.mitre.org jane@mbunix.mitre.org sue@netcom.com bob@netcom.com).  Note that by specifying a complete address (sue@netcom.com) that host (netcom.com) will become the new default host for all incomplete addresses that follow until a new default is found.  The default host can be redefined any number of times within a given list.

outputStyle

The outputStyle selects a given look & feel for the output which includes the following styles: plainText, plainTextNoRootId, tickerText, tickerTextNoRootId.

creatorEmailAddress

The creator's email address is used as the "From:" field in the mail message that is sent

How it works

The DIM receives an input product and performs the following operations:
  • Send the product through AsPlainText or AsTickerText to extract the message body
  • Create a MIMEc object and begin filling in fields
  • Send the product through AsFlatFileList in order to generate a list of attachments
  • Add the attachments to the MIMEc object
  • Build a recipient list from the targetSpec and mailingList fields
  • Attempt to send the mail using the following timeout/retry scheme:
    • make 4 connection attempts with 5 second delays between attempts
    • make 4 connection attempts with 15 second delays between attempts
    • make 2 connection attempts with 60 second delays between attempts

Revised: 12 January 1999