乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 73|回复: 1

[编程交流] 带LISP的SMTP

[复制链接]

180

主题

639

帖子

463

银币

中流砥柱

Rank: 25

铜币
897
发表于 2022-7-5 23:11:25 | 显示全部楼层 |阅读模式
我今天早上读到一篇文章,说用Common LISP可以使用SMTP发送电子邮件。本文的代码如下:
  1. (defun send-email (text &rest reciepients)
  2. "Generic send SMTP mail with some TEXT to RECIEPIENTS"
  3. (cl-smtp:with-smtp-mail (out "localhost" "noreply@fin-ack.com" reciepients)
  4.    (cl-mime:print-mime out
  5.                        (make-instance 'cl-mime:text-mime
  6.                                       :encoding :base64 :charset "UTF-8"
  7.                                       :content (arnesi:string-to-octets text :utf-)
  8.                        t t)))

 
有没有与VLISP相同的方法。。。尤其是不使用Outlook。。。只是SMTP?
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 00:32:06 | 显示全部楼层
  1. (defun c:CullThisForSmtpExample        (/ file path)
  2. (if (setq path (findfile (setq file "etbug.lsp")))
  3.    (startapp (strcat "explorer /n,/e,/select, "
  4.               path
  5.       )
  6.    )
  7.    (prompt (strcat "\n** Cannot locate "" file "" ** "))
  8. )
  9. (princ)
  10. )
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-11 03:05 , Processed in 1.204207 second(s), 56 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表