Mailer (0.12.0)

Dead-simple mailer micro-service for static websites

API Documentation

Using an AJAX request

              
fetch('http://mailerpilateschicos.pshemekpi.com/api/mail', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    email: '[email protected]',
    name: 'John Doe',
    subject: 'Contact',
    message: 'Hey there! Up for a coffee?',
    'g-recaptcha-response': 'azertyuiopqsdfghjklmwxcvbn',,
    honeypot: ''
  })
})
              
            

Using an HTML form

              
<form action="http://mailerpilateschicos.pshemekpi.com/api/mail/form" method="POST">
  <input type="text" name="name" required >
  <input type="email" name="email" required >
  <input type="text" name="subject" required >
  <input type="text" name="message" required >
  <input type="hidden" name="g-recaptcha-response" >
  <input type="hidden" name="honeypot" >
  <input type="submit" value="Send" >
</form>