Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cleanexpo avatar

Email Delivery

  • 8 installs
  • 6 repo stars
  • Updated July 16, 2026
  • cleanexpo/ato

Sends tax reports, compliance deadline alerts, and org invitations via the SendGrid API with template rendering, attachments, and delivery tracking.

About

Delivers transactional emails (accountant reports, compliance alerts, invitations) through SendGrid with template rendering, attachment handling, and bounce/complaint tracking. A developer uses it when wiring email notifications into a tax-analysis app that needs PDF/Excel attachments and delivery status.

  • SendGrid templates for reports, alerts, invitations, and completion notices
  • Attachment limits, delivery-event tracking, and bounce/spam handling

Email Delivery by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #3,619 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cleanexpo/ato --skill email-delivery

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars6
Last updatedJuly 16, 2026
Repositorycleanexpo/ato

What it does

Sends tax reports, compliance deadline alerts, and org invitations via the SendGrid API with template rendering, attachments, and delivery tracking.

Files

SKILL.mdMarkdownGitHub ↗

Email Delivery Skill

Delivers tax reports, compliance deadline alerts, and organisation invitations via the SendGrid API. Handles template rendering, attachment management, delivery status tracking, and bounce/complaint monitoring.

When to Use

  • Sending accountant reports (PDF/Excel attachments) via the send-to-accountant workflow
  • Delivering compliance deadline alerts to entity contacts
  • Sending organisation invitation emails to team members
  • Notifying users of completed forensic analysis results
  • Distributing shared report links
  • Sending amendment period expiry warnings

SendGrid Configuration

Environment Variables

VariablePurposeRequired
SENDGRID_API_KEYAPI authentication (SG.xxx format)Yes
NEXT_PUBLIC_APP_URLBase URL for links in emailsYes

API Endpoint

POST https://api.sendgrid.com/v3/mail/send
Authorization: Bearer $SENDGRID_API_KEY
Content-Type: application/json

Sender Requirements

  • Sender email must be verified in SendGrid account
  • Use a noreply@ or reports@ address for automated emails
  • Include reply-to address for accountant communications

Email Templates

1. Accountant Report Delivery

FieldContent
SubjectTax Analysis Report — {Entity Name} — {FY}
Fromreports@{app-domain}
ToAccountant email (from user input)
BodySummary of key findings + link to full dashboard
AttachmentsPDF report + Excel data export
DisclaimerTASA 2009 disclaimer in email footer

2. Compliance Alert

FieldContent
Subject[{Severity}] Tax Deadline: {Obligation} — Due {Date}
Fromalerts@{app-domain}
ToEntity admin email
BodyDeadline details, penalty information, action required
CTA"View in Dashboard" button linking to calendar page

3. Organisation Invitation

FieldContent
SubjectYou've been invited to {Organisation Name} on ATO Tax Optimizer
Frominvites@{app-domain}
ToInvitee email
BodyInvitation details, role description, accept/decline links
CTA"Accept Invitation" button with signed token
ExpiryInvitation link expires after 7 days

4. Analysis Complete Notification

FieldContent
SubjectForensic Analysis Complete — {Entity Name}
Fromnotifications@{app-domain}
ToUser email
BodySummary: X opportunities found, $X estimated value
CTA"View Results" button linking to recommendations page

Attachment Handling

FormatMax SizeMIME TypeUse
PDF20MBapplication/pdfTax analysis reports
Excel (.xlsx)20MBapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetTransaction data exports
CSV10MBtext/csvRaw data exports

SendGrid limits: 30MB total per email (including encoding overhead).

Attachment Security

  • Never attach files containing raw Xero OAuth tokens
  • Never include TFN or sensitive personal information in attachments
  • PDF reports must include TASA 2009 disclaimer
  • Excel exports must include "ESTIMATE ONLY" header row

Delivery Tracking

EventAction
deliveredLog successful delivery
bounceFlag email address, notify user
droppedInvestigate and notify user
spam_reportRemove from mailing list immediately
openTrack engagement (optional)
clickTrack CTA engagement (optional)

Rate Limits

SendGrid PlanDaily LimitRate Limit
Free100/dayN/A
Essentials100K/monthN/A
Pro1.5M/monthN/A

For this application, expected volume is low (< 50 emails/day). Free tier is sufficient for development.

Output Format

<email_delivery_result>
  <message_id>sg_abc123def456</message_id>
  <template>accountant_report</template>
  <to>accountant@example.com</to>
  <subject>Tax Analysis Report — DR Pty Ltd — FY2024-25</subject>
  <status>accepted</status>
  <sent_at>2026-02-13T10:30:00+11:00</sent_at>
  <attachments>
    <attachment name="DR-Pty-Ltd-Tax-Analysis-FY2024-25.pdf" size_kb="245" />
    <attachment name="DR-Pty-Ltd-Transactions-FY2024-25.xlsx" size_kb="180" />
  </attachments>
  <includes_disclaimer>true</includes_disclaimer>
</email_delivery_result>

Best Practices

  • Always include TASA 2009 disclaimer in email body and attachments
  • Never send unsolicited emails — only send to users who opted in or were explicitly invited
  • Handle bounces immediately — remove bounced addresses to protect sender reputation
  • Use signed URLs for dashboard links — prevents unauthorized access
  • Limit attachment size — prefer dashboard links over large attachments
  • Log all sends for audit trail (who, when, what, to whom)
  • Respect unsubscribe — include unsubscribe link in all non-transactional emails
  • Test in sandbox first — SendGrid sandbox mode prevents accidental sends

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.