Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Add debug, fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Aug 6, 2019
1 parent a88c2fe commit 7b2c55d
Show file tree
Hide file tree
Showing 12 changed files with 885 additions and 368 deletions.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mail Client Arduino Library for ESP32 v 1.2.0
# Mail Client Arduino Library for ESP32 v 1.2.1

This library allows ESP32 to send Email with/without attachment and receive Email with/without attachment download via SMTP and IMAP servers.

Expand Down Expand Up @@ -108,6 +108,14 @@ smtpData.setLogin("smtp.gmail.com", 587, "YOUR_EMAIL_ACCOUNT@gmail.com", "YOUR_E
imapData.setLogin("imap.gmail.com", 993, "YOUR_EMAIL_ACCOUNT@gmail.com", "YOUR_EMAIL_PASSWORD");


//8. To debug for SMTP or IMAP data

smtpData.setDebug(true);

imapData.setDebug(true);




```

Expand Down Expand Up @@ -345,6 +353,20 @@ void setSTARTTLS(bool starttls);




**Set debug print to serial.**

param *`debug`* - bool flag to enable debug

```C++
void setDebug(bool debug);
```
**Set the mailbox folder to search or fetch.**
param *`folderName`* - Known mailbox folder. Default value is INBOX
Expand Down Expand Up @@ -1184,6 +1206,19 @@ void setSTARTTLS(bool starttls);



**Set debug print to serial.**

param *`debug`* - bool flag to enable debug

```C++
void setDebug(bool debug);
```
**Set Sender info**
param *`fromName`* - Sender's name
Expand Down
6 changes: 3 additions & 3 deletions examples/Receive_email/Receive_email.ino
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ void readEmail()
Serial.println();
Serial.println("Read Email...");

imapData.setFechUID("10");
imapData.setFetchUID("10");
imapData.setSearchCriteria("");
MailClient.readMail(http, imapData);

imapData.setFechUID("11");
imapData.setFetchUID("11");
imapData.setSearchCriteria("");
MailClient.readMail(http, imapData);

imapData.setFechUID("12");
imapData.setFetchUID("12");
imapData.setSearchCriteria("");
MailClient.readMail(http, imapData);
}
Expand Down
1 change: 1 addition & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ sdBegin KEYWORD2

setLogin KEYWORD2
setSTARTTLS KEYWORD2
setDebug KEYWORD2
setFolder KEYWORD2
setMessageBufferSize KEYWORD2
setAttachmentSizeLimit KEYWORD2
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=ESP32 Mail Client

version=1.2.0
version=1.2.1

author=Mobizt

Expand Down
Loading

0 comments on commit 7b2c55d

Please sign in to comment.