-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
Mailer | ||
Mailer \n | ||
|
||
|
||
This repository contains a Rust program that sends emails using the lettre library. | ||
|
||
Prerequisites | ||
|
@@ -8,22 +10,22 @@ Rust and Cargo are installed on your system. You can download and install Rust f | |
An email account with SMTP support. | ||
Installation | ||
Clone the repository: | ||
'''git clone https://github.com/FossMec/mailer.git | ||
cd mailer'' | ||
```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 -- <EMAIL_ID> <PASSWORD>''' | ||
```cargo run --release -- <EMAIL_ID> <PASSWORD>``` | ||
Replace <EMAIL_ID> and <PASSWORD> with your actual email ID and password. | ||
Example | ||
'''cargo run --release -- [email protected] passwd''' | ||
```cargo run --release -- [email protected] 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''' | ||
Add Recepients at ```utils/recepients.rs``` | ||
Adjust Mail to be sent in html format at '''utils/mail_content.rs''' | ||
Adjust Mail to be sent in html format at ```utils/mail_content.rs``` |