Make sure you have Node.js and pnpm
installed on your system.
-
Clone this repository:
git clone https://github.com/anasmohammed361/email-automation.git
-
Navigate to the project directory:
cd email-automation
-
Install dependencies using
pnpm
:pnpm install
Before running the project, make sure to set up the following environment variables:
EMAIL_SMTP_PASSWORD
: Password for the SMTP server ( Google App Password ).EMAIL_USER
: Email address to send emails from.EMAIL_FROM
: Sender name/email address.
You can set these environment variables either directly in your system or by creating a .env
file in the root directory of the project and adding them there.
Example .env
file:
EMAIL_SMTP_PASSWORD=your_smtp_password
EMAIL_USER=your_email@example.com
EMAIL_FROM=Your Name <your_email@example.com>
To run the project in development mode, execute the following command:
pnpm dev
This command will start the development server with live reloading enabled.
To build the project, execute:
pnpm build
After building the project, you can run the built version using:
pnpm start
This command will start the project from the built files.
This project is licensed under the MIT License - see the LICENSE file for details.