Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.97 KB

README.md

File metadata and controls

64 lines (40 loc) · 1.97 KB

Flask Email Sender

This Flask application allows you to send emails through a simple web interface. It uses the Flask web framework, and emails are sent via Gmail SMTP. Below is a brief overview of the project:

Getting Started

Prerequisites

  • Python installed on your machine.

  • Flask and required dependencies installed. You can install them using the following command:

    pip install flask

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/flask-email-sender.git
    cd flask-email-sender
  2. Run the application:

    python app.py
  3. Open your web browser and go to http://127.0.0.1:5000/.

Usage

  1. Access the web interface by visiting http://127.0.0.1:5000/.
  2. Fill out the email sender, receiver, subject, and body fields.
  3. Click the "Send Email" button to send the email.

Configuration

In the app.py file, find the send_email function. Replace 'your_password' with your actual Gmail password. Note: It's recommended to use an application-specific password instead of your main Gmail password.

smtp.login(email_sender, 'your_password')

Important Note

  • This application uses Gmail's SMTP server. Make sure to enable "Less secure app access" in your Gmail account settings.
  • For enhanced security, consider using an application-specific password for SMTP authentication.

Contributing

Feel free to contribute by submitting issues or pull requests.

License

This project is licensed under the GNU General Public License v3.0.

Acknowledgments