Giter Site home page Giter Site logo

pabloflps / send-email-api Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 65 KB

This is an API to send emails. I made this to use in my personal page, as the email API that the contact form is connected to.

Home Page: https://email-free-api.herokuapp.com

JavaScript 94.23% Shell 5.77%
heroku email-api email-sender smtp portfolio nodemailer nodemailer-smtp-transport

send-email-api's Introduction

Send-Email-API

This an API to send emails. I made this to use in my personal page, as the email API that the form submission is connected to.

The "form" HTML tag structure

The form tag structure utilized in my site has the following structure

<form id="contact-form" action="https://email-free-api.herokuapp.com/send-email" method="POST" target="#">
  <label>Name</label>
  <input type="text" id="name" name="name" placeholder="Your Name"/>

  <label>Email</label>
  <input type="email" id="email" name="email" placeholder="Your Email"/>

  <label>Message</label>
  <textarea name="message" id="message" placeholder="Type a Message"></textarea>

  <div className="send-message">
    <button type="submit">Send Message</button>
  </div>
</form>

The "name" and "email" are utilized to identify and contact the sender back.

You can also utilize a software as Insomnia or Postman to send data in the POST route that is /send-email (just access the following adress: https://email-free-api.herokuapp.com/send-email) with a JSON request like this:

{
  "name": "name",
  "email": "[email protected]",
  "to": "[email protected]",
  "message": "message"
}
  • If you want to use this project with your own email server, take a look at the .env.example with the structure of the .env variables to set in the application. The variables are API_HOST (to use gmail server, the default is "smtp.gmail.com"), API_PORT (default is 587), API_USER (user email) and API_PASSWORD (user password).

send-email-api's People

Contributors

pabloflps avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

imthilina2008

send-email-api's Issues

Use

Hi,

I like your project. I was wondering if I could use your project for commercial purposes.
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.