This repository has been archived by the owner. It is now read-only.
‼️ already moved to gitlab https://gitlab.com/yanyingwang/chive#smtp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
tests
.gitignore
Akku.lock
Akku.manifest
LICENSE
README.md
chive-smtp.sls

README.md

chive-smtp

a smtp send email package for chez scheme

install the akku.scm package manager

https://github.com/weinholt/akku#installation

init this project

git clone git@github.com:yanyingwang/chive-smtp.git &&\
cd chive-smtp &&\
akku install &&\
source .akku/bin/activate

how to send email

open the chez repl with cmd chez after init this project, and then:

(import (chive :others smtp))


(define mail (make-mail "smtp.qq.com" ;; smtp server
                          "25" ;; smtp port
                          "94227769" ;; username, 263 email's username is like: username@domain.com
                          "password" ;; password
                          "chive-smtp@google.com" ;; who is sending this email, show it to the recipient
                          '("test@google.com" "test@qq.com") ;; the address list you are sending this email to
                          "test-subject-by-chive-smtp" ;; subject
                          "this-is-the-test-body-from-chive-smtp-lib-code" ;; email content
                          '("/Users/yanying/Desktop/temp.txt" "/Users/yanying/Desktop/temp.txt.zip"))) ;; attachment file path


(send-email mail)