I need to automatically send an email from within an elisp function. Hypothetically, I would like a single function which I can pass in the to, from, subject, body, and possibly other headers. Does such a function exist? If not how could it be implemented?
This snippet will send a mail in Emacs:
(progn
(mail)
(mail-to) (insert "[email protected]")
(mail-subject) (insert "the subject")
(mail-text) (insert "body of mail")
(mail-send))
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With