This FastAPI Email Sender was specifically developed for the Advaita team at IIIT Bhubaneswar. It facilitates communication and coordination by allowing users to send emails related to two essential aspects: general contact inquiries and sponsorship proposals.
- Swoyam Siddharth Nayak
-
Clone the repository:
git clone https://github.com/yourusername/fastapi-email-sender.git cd fastapi-email-sender
-
Install dependencies:
pip install -r requirements.txt
-
Run the FastAPI application:
uvicorn main:app --reload
The application will be accessible at
http://localhost:8000
.
curl -X POST \"http://localhost:8000/send-email/contact-us\" \
-H \"accept: application/json\" \
-H \"Content-Type: application/json\" \
-d '{\"subject\":\"Example Subject\",\"message\":\"Example Message\",\"name\":\"John Doe\",\"email\":\"john@example.com\"}'
curl -X POST \"http://localhost:8000/send-email/sponsor-us\" \
-H \"accept: application/json\" \
-H \"Content-Type: application/json\" \
-d '{\"company_name\":\"Example Company\",\"proposal\":\"Example Proposal\",\"contact_person\":\"Jane Doe\",\"designation\":\"CEO\",\"email\":\"jane@example.com\"}'
Configure the following variables in the main.py
file:
email_user
: Your email address used for authentication.email_password
: Your email password.
Feel free to contribute to this project by opening issues or submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
For any inquiries, please contact us at b121065@iiit-bh.ac.in.