Skip to content

Commit

Permalink
fix:updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vrn21 committed Jul 25, 2024
1 parent ab81ef0 commit 265f1ab
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
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
Expand All @@ -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```

0 comments on commit 265f1ab

Please sign in to comment.