Sniper Link
A free tool from Buttondown, the best way to run your newsletter.
Sniper Link streamlines email confirmation. Once a user provides their email, they can be shown a button that sends them directly to their respective inbox, filtered down to the given sender and bypassing the spam folder.
For support, email support@buttondown.email.
Sniper Link can be easily integrated into your app using the provided script and HTML tag:
recipient
: The email address of the person expected to confirm their email.sender
: The email address from which the confirmation is sent.The Sniper Link button is designed to be customized using CSS. There are four parts to the button:
container
: A wrapper that holds the entire button.button
: The clickable element.image
: A logo representing the email provider.text
: A label, by default showing “Open in {provider}”.You can use the ::part
CSS selector to override the default styles:
The default text on the Sniper Link button is “Open in {provider}”, but you can change it using the template
attribute:
We’re working on supporting as many providers as possible. Currently, we support Gmail, Yahoo, Proton, iCloud, Outlook, HEY, AOL, and Mail.ru, and we’re adding additional ones. Let us know (support@buttondown.email) if there’s a provider you’d like us to add!
When the email provider cannot be determined, the sniper-link
element will have a hidden
attribute. This attribute can be used for styling the button or the adjacent elements.
If you want to create your own custom button, you can directly depend on our API to construct it:
It’s useful to do this API call from the frontend, because the endpoint also relies on the User-Agent to determine whether the device is desktop, iOS, or Android.
Ideally, the response will look like this:
If the provider cannot be recognized, you’ll receive a `404` error:
We handle the DNS lookup, parsing, and caching, so this endpoint stays fast.
@gmail.com
or similar).<sniper-link>
component or API response.