-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a working SMTP client. #1045
Conversation
✅ Deploy Preview for elastic-ritchie-8f47f9 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -0,0 +1,23 @@ | |||
# SMTP: Simple Mail Tranfser Protocol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tyop
|
||
(import :std/net/smtp) | ||
|
||
> (def mail (smtp-connect "localhost:8025")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the connect automatically do the SSL upgrade? That deserves a comment.
@@ -0,0 +1,902 @@ | |||
#+TITLE: SMTP: Simple Mail Tranfser Protocol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tyop
:PROPERTIES: | ||
:EXPORT_FILE_NAME: ../../../../doc/reference/std/net/smtp.md | ||
:EXPORT_OPTIONS: toc:nil | ||
:EXPORT_TITLE: SMTP: Simple Mail Tranfser Protocol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tyop
:EXPORT_OPTIONS: toc:nil | ||
:EXPORT_TITLE: SMTP: Simple Mail Tranfser Protocol | ||
:END: | ||
** SMTP: Simple Mail Tranfser Protocol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tyop
|
||
The easy way to connect and interact with an SMTP server. | ||
|
||
(ssl-context (default-client-ssl-context)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this line do?
#+begin_src scheme :tangle api.ss | ||
(def (send-mail smtp return-path forward-path . data) | ||
(using (smtp : SMTP) | ||
(def sredaeh []) ;;(headers interted) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inverted? reversed?
|
||
#+begin_src sh | ||
sudo apt install postfix | ||
#+end_src |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who runs these commands in what context?
@@ -0,0 +1,902 @@ | |||
#+TITLE: SMTP: Simple Mail Tranfser Protocol | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bigger issue with org-mode: maintenance.
Unless the system enforces generation from the org file that becomes the source code (at which point the generated files are excluded from git), then what of this redundant representation of code? Are maintainers going to keep the two in sync? Edit only the org-mode then regenerate the code? (how?) Edit only the code and let the org-mode stay out of date?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The answer "for now, drewc is maintainer" is fine with me if it's fine with @vyzo — but then it needs a comment on the top of each and every relevant .ss
file.
Needs further documenting but works and in use!