Mailer

Dead-simple mailer micro-service for static websites

Mailer GitHub Tags Mailer GitHub Mailer GitHub
Deploy to now

When building static websites, everyone needs a contact form, but that requires some server-side processing. mailer provides a dead-simple micro-service (usable as a serverless function) for this purpose, enabling one to send mails from a simple form using a single AJAX request:

axios.post('https://mailer.domain.me/api/mail', {
  email: '[email protected]',
  name: 'John Doe',
  subject: 'Contact',
  message: 'Hey there! Up for a coffee?',
  honeypot: '',
  recaptcha: 'azertyuiopqsdfghjklmwxcvbn'
})

Features:

  • Self-hostable micro-service
  • Docker and serverless support
  • Unicode message support
  • CORS domain validation
  • Rate-limiting support
  • Spam-bot filtering with honeypot field
  • Google ReCaptcha v2 validation
  • Only Sendgrid back-end supported (for now)
Python Flask Docker Serverless Microservice