Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Wolfram Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • System Modeler
  • Wolfram Player
  • Finance Platform
  • Wolfram Engine
  • Enterprise Private Cloud
  • Application Server
  • Wolfram|Alpha Notebook Edition
  • 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

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

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
    • Wolfram Notebook Assistant + LLM Kit
    • System Modeler
    • Wolfram Player
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Wolfram Engine
    • Enterprise Private Cloud
    • Application Server
    • 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
SendMail
  • See Also
    • SendMessage
    • ServiceExecute
    • NotificationFunction
    • Export
    • $CloudUserID
    • MailReceiverFunction
    • MailServerConnect
    • Success
  • Related Guides
    • Automatic Mail Processing
    • Raspberry Pi
    • Sharing & Embedding Content
    • Mail, Messages, Etc.
    • Importing and Exporting
    • Calling External Programs
    • Handling Live Mailboxes
    • Background & Scheduled Tasks
    • Automated Reports
  • Workflows
    • Send Email from the Wolfram Language
    • Set Up an Automatic Mail Receiver Function
    • Set Up the Wolfram Language to Use Email
  • Tech Notes
    • Sending Email
    • See Also
      • SendMessage
      • ServiceExecute
      • NotificationFunction
      • Export
      • $CloudUserID
      • MailReceiverFunction
      • MailServerConnect
      • Success
    • Related Guides
      • Automatic Mail Processing
      • Raspberry Pi
      • Sharing & Embedding Content
      • Mail, Messages, Etc.
      • Importing and Exporting
      • Calling External Programs
      • Handling Live Mailboxes
      • Background & Scheduled Tasks
      • Automated Reports
    • Workflows
      • Send Email from the Wolfram Language
      • Set Up an Automatic Mail Receiver Function
      • Set Up the Wolfram Language to Use Email
    • Tech Notes
      • Sending Email

SendMail[body]

sends mail consisting of body to the address specified by $CloudUserID.

SendMail[{"subject"}]

sends mail with the specified subject and no body.

SendMail[{"subject",body}]

sends mail with the specified subject and body.

SendMail[{"subject",body,att}]

sends mail with the attachment or attachments att.

SendMail["to",content]

sends mail to the specified To: address.

SendMail[{"to1","to2",…},content]

sends mail to multiple To: addresses.

SendMail[{{"to1",…},{"cc1",…}},content]

includes the cci as Cc: addresses.

SendMail[{{"to1",…},{"cc1",…},{"bcc1",…}},content]

also includes the bcci as Bcc: addresses.

SendMail[assoc]

sends mail with elements specified in the association assoc.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Account Configuration  
Basic Uses  
Content  
Text Only  
Text and HTML  
Other Expressions  
Attachments  
Recipients  
Options  
MailAddressValidation  
MailSettings  
Server & Account Settings  
Auto Cc and Auto Bcc  
Signature  
Other Message Settings  
Applications  
See Also
Tech Notes
Related Guides
Related Workflows
Related Links
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • SendMessage
    • ServiceExecute
    • NotificationFunction
    • Export
    • $CloudUserID
    • MailReceiverFunction
    • MailServerConnect
    • Success
  • Related Guides
    • Automatic Mail Processing
    • Raspberry Pi
    • Sharing & Embedding Content
    • Mail, Messages, Etc.
    • Importing and Exporting
    • Calling External Programs
    • Handling Live Mailboxes
    • Background & Scheduled Tasks
    • Automated Reports
  • Workflows
    • Send Email from the Wolfram Language
    • Set Up an Automatic Mail Receiver Function
    • Set Up the Wolfram Language to Use Email
  • Tech Notes
    • Sending Email
    • See Also
      • SendMessage
      • ServiceExecute
      • NotificationFunction
      • Export
      • $CloudUserID
      • MailReceiverFunction
      • MailServerConnect
      • Success
    • Related Guides
      • Automatic Mail Processing
      • Raspberry Pi
      • Sharing & Embedding Content
      • Mail, Messages, Etc.
      • Importing and Exporting
      • Calling External Programs
      • Handling Live Mailboxes
      • Background & Scheduled Tasks
      • Automated Reports
    • Workflows
      • Send Email from the Wolfram Language
      • Set Up an Automatic Mail Receiver Function
      • Set Up the Wolfram Language to Use Email
    • Tech Notes
      • Sending Email

SendMail

SendMail[body]

sends mail consisting of body to the address specified by $CloudUserID.

SendMail[{"subject"}]

sends mail with the specified subject and no body.

SendMail[{"subject",body}]

sends mail with the specified subject and body.

SendMail[{"subject",body,att}]

sends mail with the attachment or attachments att.

SendMail["to",content]

sends mail to the specified To: address.

SendMail[{"to1","to2",…},content]

sends mail to multiple To: addresses.

SendMail[{{"to1",…},{"cc1",…}},content]

includes the cci as Cc: addresses.

SendMail[{{"to1",…},{"cc1",…},{"bcc1",…}},content]

also includes the bcci as Bcc: addresses.

SendMail[assoc]

sends mail with elements specified in the association assoc.

Details and Options

  • SendMail attempts to send the specified email to all recipients, returning Success or Failure.
  • Email addresses are given as strings.
  • The message body can be a string, an expression, or a list of expressions.
  • SendMail automatically embeds the following types of expressions as separate parts in a message:
  • EmbeddedHTML["string"]an HTML body part
    Hyperlink[…]embedded hyperlink in the body
    CloudObject[…]a cloud object with an embedded URL
    Image[…],Graphics[…],…a GIF file
    Audio[…], Sound[…]a WAV file
    Dataset[…], TimeSeries[…],…a CSV file
    NotebookObject[…]a .nb file
    XMLObject[…]an XML file
    InputForm[expr]a .wl file of Wolfram Language code
    ExportForm[expr,"fmt"]a file in the format specified by "fmt"
    exprraster image file of the formatted form of expr
    {expr1,expr2,…}a sequence of email body parts
  • SendMail uses appropriate encodings to handle any special characters that appear in a message.
  • On desktop systems, SendMail requires certain user mail settings. These can be defined through Preferences ▶ Internet & Mail ▶ Mail Settings in the notebook front end or by using SetOptions[SendMail,MailSettings]. SendMail will attempt to send email via the Wolfram Cloud if these settings have not been provided. »
  • In the Wolfram Cloud, emails are always relayed from the Wolfram Cloud server.
  • In SendMail[assoc], the association assoc can include the following basic elements:
  • "To"{}email addresses of primary recipients
    "Cc"{}email addresses of secondary recipients
    "Bcc"{}email addresses of hidden recipients
    "Subject"Nonemessage subject line
    "Body"Nonemain message body
    "TextBody"Noneadditional message body for text clients
    "HTMLBody"Noneadditional message body for HTML clients
    "AttachedExpressions"{}expressions to send as attachments
    "AttachedFiles"{}files to send as attachments
    "Priority"Automaticemail priority
    "ReturnReceipt"Nonewhere to send a return receipt
  • If "Body" is specified, it is included in the message before "TextBody" and "HTMLBody".
  • With "AttachedExpressions"->"file1"->expr1,…, each expression expri is attached with the filename filei.
  • "Priority" can have settings "High", "Normal" or "Low", or 1 (high) through 5 (low).
  • "ReturnReceipt"->Automatic returns a receipt to the sender. "ReturnReceipt"->None returns no receipt. "ReturnReceipt"->"address" returns a receipt to the specified address.
  • The association assoc can contain the following additional elements, which can also be given when setting the option MailSettings:
  • "AutoBcc"Noneautomatic hidden recipients
    "AutoCc"Noneautomatic secondary recipients
    "FromAddress"Automaticsender's email address
    "FromName"Nonesender's full name
    "ReplyTo"Nonesuggested address for replies
    "Signature"Nonetext to be appended at the end of the email
  • The following elements related to the mail connection can also be given in the association assoc, and in the settings for MailSettings:
  • "EncryptionProtocol"Automaticemail encryption protocol
    "Password"Automaticuser password
    "PortNumber"Automaticserver port number or numbers
    "Server"Automaticserver host name or IP address
    "ServerAuthentication"Automaticwhether and how to verify server certificates
    "Username"$Usernameuser login name
  • Possible settings for "EncryptionProtocol" include "SSL", "TLS", "StartTLS" and None. With the setting Automatic, the encryption is chosen based on the server used.
  • "Password" is typically set to None if no password authentication is required, or to Automatic if the password is to be entered in an interactive dialog. The password can also be given as a plain text string.
  • Email credentials can be optionally stored via the "Password" interactive dialog. The credentials are encrypted using keys stored on your computer's hard drive. The encrypted credentials will be transmitted to the Wolfram Cloud and may only be accessed after you have authenticated using your Wolfram ID.
  • SendMail has the following options:
  • MailAddressValidation Automaticfunction for address validation
    MailSettings Automatican association of mail settings
  • The setting for MailAddressValidation is applied to all sender and recipient email addresses. If validation fails for any address, SendMail will not send any message.

Examples

open all close all

Basic Examples  (2)

Send a text email to the specified recipient:

Send an arbitrary expression to the specified recipient:

Scope  (32)

Account Configuration  (2)

Configure outgoing mail settings in the Internet & Mail tab of the Preferences dialog:

Configure default parameters using SetOptions:

Basic Uses  (6)

Send a text email to the specified recipient:

Send a text email to $CloudUserID:

Send an HTML email to $CloudUserID:

Send an email with text and HTML alternatives:

Send an arbitrary expression:

Specify the recipients and email content using an Association:

Content  (18)

Text Only  (3)

Send an email only with a text body:

Send an email only with a subject line and an empty body:

Send a text email with a subject line:

Text and HTML  (3)

Send an HTML email:

Send an email with text and HTML alternatives:

Send an email with mixed text and HTML body parts:

Other Expressions  (9)

Send an email with a Hyperlink:

Send a Wolfram Language cloud object:

Send an Image object:

Send an Audio object as a WAV file:

Send a TimeSeries object as a CSV file:

Send a notebook object:

Send the InputForm of an arbitrary expression:

Send the ExportForm of an arbitrary expression:

Send a list of arbitrary expressions:

Attachments  (3)

Send an email with attachments:

Attach a local file to an email:

Send an arbitrary expression as an attachment to the specific recipient:

Recipients  (6)

Email specified recipients:

Recipients can be specified with a name and an email address:

Specify a To recipient:

Email multiple recipients:

Specify To and Cc recipients:

Specify Bcc recipients:

Options  (9)

MailAddressValidation  (2)

Specify a function to be used to validate all email addresses before sending:

Specify a function to be used to validate all email addresses before sending:

MailSettings  (7)

Server & Account Settings  (2)

Specify the outgoing mail server and credential:

Specify whom the email is from:

Auto Cc and Auto Bcc  (2)

Automatically Cc a second recipient:

Automatically Bcc a second recipient:

Auto Cc and Auto Bcc can also be set in the Internet & Mail tab of the Preferences dialog.

Signature  (1)

Append a signature to the end of the message body:

Other Message Settings  (2)

Send an email with high priority:

Request a return receipt to the specified email address:

Applications  (1)

Send a notification email when a calculation is finished:

See Also

SendMessage  ServiceExecute  NotificationFunction  Export  $CloudUserID  MailReceiverFunction  MailServerConnect  Success

Function Repository: SendMailFromNotebook

Tech Notes

    ▪
  • Sending Email

Related Guides

    ▪
  • Automatic Mail Processing
  • ▪
  • Raspberry Pi
  • ▪
  • Sharing & Embedding Content
  • ▪
  • Mail, Messages, Etc.
  • ▪
  • Importing and Exporting
  • ▪
  • Calling External Programs
  • ▪
  • Handling Live Mailboxes
  • ▪
  • Background & Scheduled Tasks
  • ▪
  • Automated Reports

Related Workflows

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

Related Links

  • An Elementary Introduction to the Wolfram Language : Importing and Exporting

History

Introduced in 2008 (7.0) | Updated in 2014 (10.0) ▪ 2017 (11.2) ▪ 2018 (11.3) ▪ 2020 (12.1)

Wolfram Research (2008), SendMail, Wolfram Language function, https://reference.wolfram.com/language/ref/SendMail.html (updated 2020).

Text

Wolfram Research (2008), SendMail, Wolfram Language function, https://reference.wolfram.com/language/ref/SendMail.html (updated 2020).

CMS

Wolfram Language. 2008. "SendMail." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/SendMail.html.

APA

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

BibTeX

@misc{reference.wolfram_2025_sendmail, author="Wolfram Research", title="{SendMail}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/SendMail.html}", note=[Accessed: 01-December-2025]}

BibLaTeX

@online{reference.wolfram_2025_sendmail, organization={Wolfram Research}, title={SendMail}, year={2020}, url={https://reference.wolfram.com/language/ref/SendMail.html}, note=[Accessed: 01-December-2025]}

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
  • System Modeler

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

  • Wolfram Player
  • Wolfram Engine

  • 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
© 2025 Wolfram
© 2025 Wolfram | Legal & Privacy Policy |
English