Set up an email address in the cloud that applies a function to all messages it receives.
Make a Mail Receiver Function
Make a mail receiver function that responds to incoming email by sending a notification message:
- MailReceiverFunction has access to a large number of email properties in addition to #From and #Subject.
- By default, SendMail relays messages through the Wolfram Cloud, which requires you to have a Wolfram Cloud account.
Deploy the Mail Receiver Function to the Wolfram Cloud
When deployed to the Wolfram Cloud, the mail receiver function responds to email sent to the address in the CloudObject output:
Test the Deployed Mail Receiver Function
Test the mail receiver by clicking the receiver link in the preceding CloudDeploy output:
The Wolfram System opens your email client so that you can compose a message. Enter a subject and message and send the message:
The receiver sends a response: