unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Konrad Makowski <poczta@konradmakowski.pl>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: guile - sending emails
Date: Thu, 23 Oct 2014 14:04:21 -0400	[thread overview]
Message-ID: <87k33q7jdm.fsf@yeeloong.lan> (raw)
In-Reply-To: <5448E36C.3050701@konradmakowski.pl> (Konrad Makowski's message of "Thu, 23 Oct 2014 13:15:56 +0200")

Konrad Makowski <poczta@konradmakowski.pl> writes:

> I use msmtp for my needs.
>
> (define (send-email)
>  (let ((port (open-pipe* OPEN_BOTH "msmtp" SMTP_MAIL_TO_SECRETARY)))
>  (display (smtp-body) port)
>  (close-pipe port)))

You should use OPEN_WRITE instead of OPEN_BOTH here, but otherwise it
looks good to me.

     Mark



      reply	other threads:[~2014-10-23 18:04 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 ` guile - sending emails Nala Ginrut
2014-10-23 11:15   ` Konrad Makowski
2014-10-23 18:04     ` Mark H Weaver [this message]

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=87k33q7jdm.fsf@yeeloong.lan \
    --to=mhw@netris.org \
    --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).