Skip to content

Commit

Permalink
Update README.md (#46)
Browse files Browse the repository at this point in the history
Add an example of how to format and send with HTML tags
  • Loading branch information
dmoliveira authored Feb 14, 2021
1 parent 89f4196 commit ef324e9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ resp = send(url, rcpt, from, body, opt)
body = open("/path/to/mail")
```

### Example with HTML Formatting
```
body = "Subject: A simple test\r\n"*
"Mime-Version: 1.0;\r\n"*
"Content-Type: text/html;\r\n"*
"Content-Transfer-Encoding: 7bit;\r\n"*
"\r\n"*
"""<html>
<body>
<h2>An important link to look at!</h2>
Here's an <a href="https://github.com/aviks/SMTPClient.jl">important link</a>
</body>
</html>\r\n"""
```
### Gmail Notes
Due to the security policy of Gmail,
Expand Down

0 comments on commit ef324e9

Please sign in to comment.