https://github.com/fossmec/mailer
https://github.com/fossmec/mailer
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fossmec/mailer
- Owner: FossMec
- Created: 2024-07-25T19:38:58.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-12T14:36:56.000Z (almost 2 years ago)
- Last Synced: 2025-01-09T20:09:58.050Z (over 1 year ago)
- Language: Rust
- Size: 49.8 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Mailer \n
This repository contains a Rust program that sends emails using the lettre library.
Prerequisites
Before you begin, ensure you have met the following requirements:
Rust and Cargo are installed on your system. You can download and install Rust from here.
An email account with SMTP support.
Installation
Clone the repository:
```
git clone https://github.com/FossMec/mailer.git
cd mailer
```
To run the program, you need to provide your email ID and password as command-line arguments. Here's the basic usage:
```
cargo run --release --
```
Replace and with your actual email ID and password.
Example
```
cargo run --release -- vrntwentyone@zohomail.in passwd
```
Configuration
This program uses the lettre library for sending emails. The basic configuration for sending an email is included in the code.
You can modify SMTP server in main.rs.
Add Recepients at ```utils/recepients.rs```
Adjust Mail to be sent in html format at ```utils/mail_content.rs```
things needed for this code to work:
```src/utils/links.rs```
and a ```Recepients.csv ```file