Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
MailReceiverFunction
  • See Also
    • MailResponseFunction
    • ReturnReceiptFunction
    • APIFunction
    • DatabinAdd
    • SendMail
    • FormFunction
    • Import
    • ChannelReceiverFunction
    • MailServerConnect
    • MailExecute

    • Formats
    • MBOX
    • EML
  • Related Guides
    • Automatic Mail Processing
    • Mail, Messages, Etc.
    • Handling Live Mailboxes
    • Cloud Functions & Deployment
  • Workflows
    • Set Up an Automatic Mail Receiver Function
    • Send Email from the Wolfram Language
    • See Also
      • MailResponseFunction
      • ReturnReceiptFunction
      • APIFunction
      • DatabinAdd
      • SendMail
      • FormFunction
      • Import
      • ChannelReceiverFunction
      • MailServerConnect
      • MailExecute

      • Formats
      • MBOX
      • EML
    • Related Guides
      • Automatic Mail Processing
      • Mail, Messages, Etc.
      • Handling Live Mailboxes
      • Cloud Functions & Deployment
    • Workflows
      • Set Up an Automatic Mail Receiver Function
      • Send Email from the Wolfram Language

MailReceiverFunction[fun]

represents a mail receiver function that applies fun to any mail message it receives.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Applications  
Properties & Relations  
See Also
Related Guides
Related Workflows
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • MailResponseFunction
    • ReturnReceiptFunction
    • APIFunction
    • DatabinAdd
    • SendMail
    • FormFunction
    • Import
    • ChannelReceiverFunction
    • MailServerConnect
    • MailExecute

    • Formats
    • MBOX
    • EML
  • Related Guides
    • Automatic Mail Processing
    • Mail, Messages, Etc.
    • Handling Live Mailboxes
    • Cloud Functions & Deployment
  • Workflows
    • Set Up an Automatic Mail Receiver Function
    • Send Email from the Wolfram Language
    • See Also
      • MailResponseFunction
      • ReturnReceiptFunction
      • APIFunction
      • DatabinAdd
      • SendMail
      • FormFunction
      • Import
      • ChannelReceiverFunction
      • MailServerConnect
      • MailExecute

      • Formats
      • MBOX
      • EML
    • Related Guides
      • Automatic Mail Processing
      • Mail, Messages, Etc.
      • Handling Live Mailboxes
      • Cloud Functions & Deployment
    • Workflows
      • Set Up an Automatic Mail Receiver Function
      • Send Email from the Wolfram Language

MailReceiverFunction

MailReceiverFunction[fun]

represents a mail receiver function that applies fun to any mail message it receives.

Details and Options

  • CloudDeploy[MailReceiverFunction[…]] yields a CloudObject containing metainformation specifying the email address to which mail for the mail receiver should be sent.
  • For the Wolfram Cloud, the email address is typically of the form receiver+xxxx@wolframcloud.com, where xxxx is a unique ID assigned to each mail receiver.
  • In MailReceiverFunction[fun], fun[assoc] is evaluated whenever a piece of mail is received. The association assoc is derived from the mail received.
  • The following basic primary elements are usually present in the association:
  • "From"sender name and email address
    "FromAddress"sender raw email address
    "Subject"the subject of the email
    "OriginatingDate"date and time from message headers
    "OriginatingTimeZone"time zone from message headers
    "Body"message body as a string
    "ToList"recipient names and addresses
    "ToAddressList"recipient addresses
    "ToNameList"recipient full names
    "CcList"copied recipient names and addresses
    "CcAddressList"copied recipient addresses
    "CcNameList"copied recipient full names
    "BccList"blind-copied recipients (for Sent folder only)
    "ReplyToList"reply-to names and addresses
    "ReplyToAddressList"reply-to addresses
    "ReplyToNameList"reply-to full names
    "MessageID"unique ID for this message
    "ReplyToMessageID"ID of a message to which this replies, if any
    "AttachmentList"list of processed attachments as expressions
    "AttachmentDetails"lists of associations giving content and attachment elements
    "ReceiverAddress"email address of the mail receiver function
    "ReceiverRoutingType"whether the receiver is in "To", "Cc", or "Bcc"
  • Additional advanced properties of MailReceiverFunction include all elements available through "MBOX" import.
  • Special elements of the association include:
  • "Association"the complete association of all available elements
  • MailReceiverFunction has the following options:
  • MailResponseFunctionAutomaticfunction to apply to respond to the sender
    ReturnReceiptFunctionNonefunction to apply if a return receipt is requested
  • The function fun is evaluated in the environment of the owner of the mail receiver function.
  • MailReceiverFunction[fun]["string"] decodes the string as a mail message and returns the result of applying fun to the resulting association.
  • MailReceiverFunction[fun][File[…]] decodes the contents of a file as a mail message.

Examples

open all close all

Basic Examples  (3)

Find the sender from the first message in an MBOX file:

Deploy a mail receiver that notifies you when a message is received:

Log the body content of an email in your cloud account:

Send an email to the receiver function and verify the log:

Scope  (1)

Get a full message as a Dataset from an MBOX file:

Applications  (2)

Create an email account that exports an attachment to the web:

Send an image to the receiver:

View the exported attachment in a browser:

Automatically send a custom receipt confirmation:

A response will automatically be computed and sent:

Properties & Relations  (1)

ChannelReceiverFunction works analogously to MailReceiverFunction on channel broker messages:

Send a message to the associated channel and verify the log:

See Also

MailResponseFunction  ReturnReceiptFunction  APIFunction  DatabinAdd  SendMail  FormFunction  Import  ChannelReceiverFunction  MailServerConnect  MailExecute

Formats: MBOX  EML

Related Guides

    ▪
  • Automatic Mail Processing
  • ▪
  • Mail, Messages, Etc.
  • ▪
  • Handling Live Mailboxes
  • ▪
  • Cloud Functions & Deployment

Related Workflows

    Related Workflows
    ▪
  • Set Up an Automatic Mail Receiver Function
  • ▪
  • Send Email from the Wolfram Language

History

Introduced in 2015 (10.2) | Updated in 2016 (11.0)

Wolfram Research (2015), MailReceiverFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/MailReceiverFunction.html (updated 2016).

Text

Wolfram Research (2015), MailReceiverFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/MailReceiverFunction.html (updated 2016).

CMS

Wolfram Language. 2015. "MailReceiverFunction." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/MailReceiverFunction.html.

APA

Wolfram Language. (2015). MailReceiverFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MailReceiverFunction.html

BibTeX

@misc{reference.wolfram_2025_mailreceiverfunction, author="Wolfram Research", title="{MailReceiverFunction}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/MailReceiverFunction.html}", note=[Accessed: 01-May-2026]}

BibLaTeX

@online{reference.wolfram_2025_mailreceiverfunction, organization={Wolfram Research}, title={MailReceiverFunction}, year={2016}, url={https://reference.wolfram.com/language/ref/MailReceiverFunction.html}, note=[Accessed: 01-May-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English