-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a working SMTP client. Needs some cleaning but almost done!
- Loading branch information
Showing
11 changed files
with
1,365 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# SMTP: Simple Mail Tranfser Protocol | ||
|
||
(import :std/net/smtp) | ||
|
||
> (def mail (smtp-connect "localhost:8025")) | ||
> (send-mail mail "<[email protected]>" "[email protected]" | ||
To: "All Users <[email protected]>" | ||
From: "No Reply <[email protected]>" | ||
Subject: "This is a subject" | ||
"Body not by itself") | ||
("250 2.0.0 Ok: queued as 1E29D10201C2") | ||
|
||
> (send-mail mail "<[email protected]>" "[email protected]" "No headers just body") | ||
("250 2.0.0 Ok: queued as 1111A10201C2") | ||
|
||
> (send-mail mail "<[email protected]>" "[email protected]" | ||
[Subject: "Headers can be a plist"] From: "Nested even!" | ||
"because who knows") | ||
("250 2.0.0 Ok: queued as 5C4F810201C2") | ||
|
||
> (SMTP-QUIT mail) | ||
("221 2.0.0 Bye") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(import ./smtp/api) (export (import: ./smtp/api)) |
Oops, something went wrong.