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

Commit 023c053

Browse files
committed
Add convert docs
1 parent 60ed928 commit 023c053

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

guide/docs/convert.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Convert
2+
3+
## To an email object
4+
5+
EML `String` to `Email`
6+
```kotlin
7+
string.toEmail()
8+
```
9+
10+
`MimeMessage` to `Email`
11+
```kotlin
12+
mimeMessage.email
13+
```
14+
15+
## From an email object
16+
17+
`Email` to `MimeMessage`
18+
```kotlin
19+
email.mimeMessage
20+
```
21+
22+
`Email` to EML `String`
23+
```kotlin
24+
email.eml
25+
```

guide/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ nav:
1818
- Core:
1919
- Email API: core.md
2020
- Kotlin HTML DSL: html.md
21+
- Convert: convert.md
2122
- Server: server.md
2223
- Client: client.md
2324
- TLS: tls.md

0 commit comments

Comments
 (0)