Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

ReturnReceiptFunction

ReturnReceiptFunction
is an option for MailReceiverFunction that specifies what function to apply if a return receipt is requested for mail received by a MailReceiverFunction.

DetailsDetails

  • Typical settings include:
  • Truealways allow a return receipt
    Falsenever allow a return receipt
    funapply fun to determine whether to give a return receipt
  • With the setting ReturnReceiptFunction->fun, fun 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.
  • The function fun is only applied if a return receipt was requested for a particular piece of mail, as indicated by the value for "ReturnReceiptRequested" in the association supplied to MailReceiverFunction.
  • If the value obtained by applying fun is True, a return receipt is given; otherwise, it is not.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Deploy a mail receiver that only allows return receipts for a certain domain:

In[4]:=
Click for copyable input
Out[4]=
Introduced in 2015
(10.2)