({{, (RefLink[MailResponseFunction, paclet:ref/MailResponseFunction]) 
is an option for (RefLink[MailReceiverFunction, paclet:ref/MailReceiverFunction]) that specifies what function to apply to respond to the sender of mail received by a (RefLink[MailReceiverFunction, paclet:ref/MailReceiverFunction]).}})

OpenersNotesSection(Spacer1)Details

Typical settings include:

(RefLink[MailResponseFunction, paclet:ref/MailResponseFunction])->(RefLink[Automatic, paclet:ref/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 (RefLink[MailReceiverFunction, paclet:ref/MailReceiverFunction]).

With the setting (RefLink[MailResponseFunction, paclet:ref/MailResponseFunction])->respfun, respfun is applied to the same association as in (RefLink[MailReceiverFunction, paclet:ref/MailReceiverFunction]), but with an additional entry "Result" that gives the result from applying the function in (RefLink[MailReceiverFunction, paclet:ref/MailReceiverFunction]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

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

CloudDeploy[MailReceiverFunction[(CloudPut["Responded To "<>#From,"MailResponseLog"]&),MailResponseFunction->({"I got your email","Thank you "<>#FromName<>", for the email"}&)]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[MailReceiverFunction, paclet:ref/MailReceiverFunction])  ▪  (RefLink[ReturnReceiptFunction, paclet:ref/ReturnReceiptFunction])  ▪  (RefLink[SendMail, paclet:ref/SendMail])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Automatic Mail Processing, paclet:guide/AutomaticMailProcessing])}})}})