An open API service indexing awesome lists of open source software.

https://github.com/fossmec/mailer


https://github.com/fossmec/mailer

Last synced: 11 months ago
JSON representation

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