Overview
mailr is an R package designed to send emails directly from within the R environment. Built on top of the robust Apache Commons Email library, it provides data scientists and developers with a simple interface to programmatically send plain text and HTML emails via SMTP servers.
Key Features
- HTML & Plain Text Support: Easily compose and send both plain text and rich HTML emails.
- File Attachments & Inline Media: Attach external files such as report PDFs or CSVs, and embed inline images directly into the email body.
- Secure Authentication: Supports SSL and TLS encryption to securely authenticate with email providers like Gmail, Outlook, or custom enterprise servers.
- Customizable Headers: Configure sender, receiver, CC/BCC lists, reply-to addresses, and custom email headers.
- Automated Workflows: Seamlessly integrate email notifications and reports into scheduled batch scripts or data pipelines.
Target Use Cases
- Automated Reporting: Dispatching generated analytical reports or charts upon execution completion.
- System Monitoring: Sending instant email alerts when data pipelines encounter errors or anomalies.
- Notification Services: Triggering personalized email communications based on data analysis results.




