Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -844,11 +844,20 @@
var RUNS = 'https://api.github.com/repos/msgwing/ZeroSMTP/actions/workflows/'
+ 'service-healthcheck.yml/runs?per_page=1&status=completed';

// Deliberately not `npx zerosmtp-check`: that package is not published
// to npm - publish-npm.yml needs an NPM_TOKEN secret the repository
// does not have, and has never run. Telling a reader to run a command
// that 404s is worse than telling them nothing. These two need no
// install and are already in the troubleshooting guide.
function selfTest() {
return '<p class="muted">To test from your own network rather than ours &mdash; '
+ 'which is the result that actually decides whether your device can '
+ 'send &mdash; run <code>npx zerosmtp-check</code>. It opens both ports '
+ 'and completes the TLS handshake, and sends nothing.</p>';
+ 'which is the result that actually decides whether your device can send '
+ '&mdash; open a terminal:</p>'
+ '<ul>'
+ '<li>Windows: <code>Test-NetConnection mx.msgwing.com -Port 587</code></li>'
+ '<li>Linux or macOS: <code>openssl s_client -starttls smtp -connect mx.msgwing.com:587</code></li>'
+ '</ul>'
+ '<p class="muted">Both open the connection and send no mail.</p>';
}

el.addEventListener('click', function(e){
Expand Down
Loading