Skip to content

Instantly share code, notes, and snippets.

@brulint
Last active April 7, 2025 16:29
Show Gist options
  • Save brulint/cf03b4c16655f257d96bda8f41f51471 to your computer and use it in GitHub Desktop.
Save brulint/cf03b4c16655f257d96bda8f41f51471 to your computer and use it in GitHub Desktop.
Send gmail with common lisp cl-smtp

[Edit: If it doesn't work anymore, go to https://wmealing.github.io/sending-email-in-common-lisp.html]

Autoriser les applications moins sécurisées

Dans Google, paramètres du compte, sécurité

use cl-smpt library

(ql:quickload :cl-smtp)
(let ((from "[email protected]")
      (to "RECIPIENT")
      (subject "test")
      (message "Hello ;-)")
      (login "[email protected]")
      (passwd "PASSWORD"))
  (cl-smtp:send-email "smtp.gmail.com" from to subject message 
                      :ssl :tls :authentication `(,login ,passwd)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment