This project provides a publicly available mail server for user feedback handling. It uses Node.js and integrates with Google AI to check the relevancy of feedback messages before sending them to specified email addresses.
The service is hosted on Render. Use the following base URL to access the service:
Description: Sends feedback to specified receiver email addresses after checking the relevancy of the message.
Request Body:
{
"name":"testuser",
"email": "user@example.com",
"feedback": "This is a feedback message.",
"context": "product feedback",
"receiverEmail": "receiver@gmail.com"
}Response:
- Success (200): Message sent
- Failure (400): Message is not relevant or Missing required fields: name, email, feedback, context, receiverEmail
- Error (500): Error message
- Obtaining Google AI API key.
- Setting up a receiver Gmail account.
- Getting app password for your Gmail account after 2FA.
git clone https://github.com/yuvrajzanwar/feedback-mail-server.git
cd feedback-mail-server
npm install
EMAIL_USER=your-email@gmail.com
APP_PASS=your-app-password
GOOGLEAI_API_KEY=your-google-ai-api-keynode server.js