Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit 88243d9

Browse files
committed
Update readme.md
1 parent 5cd8a25 commit 88243d9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

readme.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,24 @@ Stop the server:
6262
smtpServer.stop()
6363
```
6464

65+
### Convert
66+
67+
To an email:
68+
```kotlin
69+
// EML String -> Email
70+
string.toEmail()
71+
// MimeMessage -> Email
72+
mimeMessage.email
73+
```
74+
75+
From an email:
76+
```kotlin
77+
// Email -> MimeMessage
78+
email.mimeMessage
79+
// Email -> EML String
80+
email.eml
81+
```
82+
6583
## Project information
6684

6785
This project uses [SimpleJavaMail](https://www.simplejavamail.org/) to deal with java MimeMessages in a more elegant

0 commit comments

Comments
 (0)