# Email Library
Business processes often involves reading/sending/downloading email data. Email library helps the developers to create bots using SMTP based functions. Using Email library developers can effortlessly perform various operations such as read/download/send etc.
# Method: Init_Email_Exchange(System.String, System.String)
To send a mail from a generic mail id
Parameters:
| Fields | |
|---|---|
| mailid | Specifies the mail id |
| password | Specifies the password |
# Method: SendEmail(System.String, List(T), List(T), SystemString, List(T))
Sending a mail to the user
Parameters:
| Fields | |
|---|---|
| message | Specifies the message of the email |
| emailto | Specifies the recipient list |
| attach_path | Specifies the attachment if any |
| subject | Specifies the subject of email |
| emailcc | Specifies the CC of email |
# Method: DownloadMailItem(string id, string email, string password, string path)
To download an email
Parameters:
| Fields | |
|---|---|
| id | Specifies the attachment |
| Specifies the mail id | |
| password | Specifies the password |
| path | Specifies the path where to store the downloaded file |