From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: guile - sending emails Date: Tue, 21 Oct 2014 11:30:22 +0800 Message-ID: References: <54456DEB.2000401@konradmakowski.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1413862252 32215 80.91.229.3 (21 Oct 2014 03:30:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2014 03:30:52 +0000 (UTC) Cc: Guile User To: Konrad Makowski Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Oct 21 05:30:44 2014 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XgQ9i-0004gf-JA for guile-user@m.gmane.org; Tue, 21 Oct 2014 05:30:42 +0200 Original-Received: from localhost ([::1]:47719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgQ9h-0001C1-PS for guile-user@m.gmane.org; Mon, 20 Oct 2014 23:30:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgQ9R-0001Bl-LZ for guile-user@gnu.org; Mon, 20 Oct 2014 23:30:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgQ9Q-0003XX-Hh for guile-user@gnu.org; Mon, 20 Oct 2014 23:30:25 -0400 Original-Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:38465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgQ9Q-0003XH-9E for guile-user@gnu.org; Mon, 20 Oct 2014 23:30:24 -0400 Original-Received: by mail-lb0-f173.google.com with SMTP id 10so247028lbg.32 for ; Mon, 20 Oct 2014 20:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=n9aXff5UUTxK+9knvCPuwBpmgufebHF3W6PCjkTrENE=; b=WGEMO1T7rnowO/jJ411sS7wG5hg/tWley1uZq4z2QcRS6iOcQNKALcX1dukf+t/T+T 16Y9k8n2VtdUVbzc0LLHlVw/26XcuteQbbIcOkg9qZ1N3/xJ/eHlOX+Ysk0W6uX7AXsl sYrdvtnnxXn1Jj0p7NKb4BCfJ3oUU7sFtHrHcSvHoPp4nLhmEgRyvriLOkUWrSGrvk0G W0KFT4N5kRbPV9mnbIQ0X5jNvdXlwm+/N6lDxxXk4chTDEN5kIdjxTJj1xHVPmhnH2S1 hOjvEpuMsLdJOgG/70EVNMaa6lMxbbFFNUQ9Fd+9kXNkAHEXH1II1beL4DOru8mothnv UiRg== X-Received: by 10.152.161.195 with SMTP id xu3mr31133606lab.15.1413862222138; Mon, 20 Oct 2014 20:30:22 -0700 (PDT) Original-Received: by 10.152.28.105 with HTTP; Mon, 20 Oct 2014 20:30:22 -0700 (PDT) In-Reply-To: <54456DEB.2000401@konradmakowski.pl> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22d X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11588 Archived-At: 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 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 > >