unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Nala Ginrut <nalaginrut@gmail.com>
To: Konrad Makowski <poczta@konradmakowski.pl>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: guile - sending emails
Date: Tue, 21 Oct 2014 11:30:22 +0800	[thread overview]
Message-ID: <CAPjoZof7JT1t2j6SdVcJDWE1LgZjayA8C_eEBgKTR_4Hqjs_rA@mail.gmail.com> (raw)
In-Reply-To: <54456DEB.2000401@konradmakowski.pl>

I don't know if there's any lib for sending mails, but I do have a
similar module in Artanis:
https://github.com/NalaGinrut/artanis/blob/wip-sql-mapping/artanis/sendmail.scm

It's naive and simple since it's not a significant part for a
web-framework at present, but maybe enough to inspire someone to write
a completed standalone one. ;-)

-----------------------------------------Usage-------------------------------------------------
(define sender (make-simple-mail-sender "a@a.com" "b@b.com" #:sender
"/usr/sbin/sendmail"))
(send-the-mail (sender "hello!" #:subject "test"))
-----------------------------------------end-----------------------------------------------------

It's a buggy module, so please don't ask me why, if you can't send out
the mail...and please checkout your sendmail config first.
The example above works for me anyway.

Happy hacking!




On Tue, Oct 21, 2014 at 4:17 AM, Konrad Makowski
<poczta@konradmakowski.pl> wrote:
> How can i send emails from guile script? Is there any module for that
> purpose? I know that there is mailutils but can't figure out how to do that
> with it. Please, show me some examples.
>
> --
> Konrad
>
>



  parent reply	other threads:[~2014-10-21  3:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-20 20:17 guile - sending emails Konrad Makowski
2014-10-20 21:13 ` Chris Vine
2014-10-20 23:13   ` Mike Gran
2014-10-30 10:30     ` ftp uploading files Konrad Makowski
2014-10-30 12:59       ` Mike Gran
2014-10-21  3:30 ` Nala Ginrut [this message]
2014-10-23 11:15   ` guile - sending emails Konrad Makowski
2014-10-23 18:04     ` Mark H Weaver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPjoZof7JT1t2j6SdVcJDWE1LgZjayA8C_eEBgKTR_4Hqjs_rA@mail.gmail.com \
    --to=nalaginrut@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=poczta@konradmakowski.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).