• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-pkgz / email / 42376391897
94%
master: 93%

Build:
Build:
LAST BUILD BRANCH: batch-send
DEFAULT BRANCH: master
Ran 07 Nov 2026 01:19PM UTC
Jobs 1
Files 3
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Nov 2026 09:57AM UTC coverage: 93.87% (+1.0%) from 92.875%
42376391897

Pull #33

github

paskal
Add SendBatch to send several messages over one connection

Previously, Send ended the SMTP session after each message, including
when a client was supplied through the SMTP option, so a batch of
emails meant one session per message.

SendBatch reuses one connection, authenticating once when credentials
are configured and sending each valid message in its own transaction.
After a rejection by the server it continues only if RSET succeeds.
RSET comes from the new single-method SMTPResetter interface, which
smtp.Client implements; SMTPClient is unchanged, so existing
implementations keep compiling. A failed or unavailable reset, a
connection failure or a cancelled or expired context stops the rest
of the batch. BatchError reports the result of every message, and its
Is and As methods let errors.Is and errors.As look into it on Go 1.19,
which does not follow a multi-error Unwrap.

The authentication, transaction and QUIT steps of SendContext move
into helpers shared with SendBatch, without a change in its behaviour.
Pull Request #33: Add SendBatch to send several messages over one connection

121 of 124 new or added lines in 1 file covered. (97.58%)

28 existing lines in 1 file now uncovered.

490 of 522 relevant lines covered (93.87%)

177.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
92.95
1.51% email.go

Coverage Regressions

Lines Coverage ∆ File
28
92.95
1.51% email.go
Jobs
ID Job ID Ran Files Coverage
1 42376391897.1 07 Nov 2026 01:19PM UTC 3
93.87
GitHub Action Run
Source Files on build 42376391897
  • Tree
  • List 3
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #33
  • PR Base - master (#41331228511)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc