This is an API that sends entry to the entered email.
The API is hosted on Cyclic: https://email-backend.cyclic.app/
/message/send
method: POST
- my_email: Email user entry will be sent to
- message: Message from the user
- first_name: First name of the user
- last_name: Last name of the user
- user_email: Email of the user
const options = {
method: 'POST',
body: JSON.stringify({
my_email: "My Personal Email",
message: "Message from user on your portfolio",
first_name: "user's first name",
last_name: "user's last name",
title: "Title of user's message",
user_email: "user's email address"
}),
};
fetch('https://email-backend.cyclic.app/message/send', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import requests
url = "https://email-backend.cyclic.app/message/send"
payload = {
"my_email": "My Personal Email",
"message": "Message from user on your portfolio",
"first_name": "user's first name",
"last_name": "user's last name",
"title": "Title of user's message",
"user_email": "user's email address"
}
response = requests.request("POST", url, json=payload)
print(response.text)