MailResponseFunction

MailResponseFunction

is an option for MailReceiverFunction that specifies what function to apply to respond to the sender of mail received by a MailReceiverFunction.

Details

  • Typical settings include:
  • Truesend an acknowledgment
    Falseno response
    Automaticsend an acknowledgment when it seems appropriate
    respfunapply the function respfun
  • MailResponseFunction->Automatic avoids sending responses when it detects that the sender is a daemon or that there are "do not reply" directives in Reply-To or From fields, as indicated by the value of the "DoNotReply" element in the association supplied in MailReceiverFunction.
  • With the setting MailResponseFunction->respfun, respfun is applied to the same association as in MailReceiverFunction, but with an additional entry "Result" that gives the result from applying the function in MailReceiverFunction.

Examples

Basic Examples  (1)

Deploy a mail receiver that sends custom responses back to the sender:

In[4]:=
Click for copyable input
Out[4]=

See Also

MailReceiverFunction  ReturnReceiptFunction  SendMail

Introduced in 2015
(10.2)