sending email via gmail Re: [Haskell-cafe] Sending email from a Haskell program

2008-12-05 Thread Thomas Hartman
I ran into this problem when I wanted to send email from a HAppS web
app, routing it through gmail. There actually used to be an SMTP
client in HAppS but it was dropped a while ago.

The most common workaround appears to be, just use sendmail. But I
couldn't figure out a way to get sendmail to interface with gmail. (I
think there is a way, there are blogs on it, I just wasn't patient
enough to follow the directions.)

What I finally did is, I have successfully followed the instructions in

http://www.ericstockwell.com/?p=3

to send myself email from the command line. So I will probably use HSH
to run shell commands in my haskell web apps, to send email.

This process only took a few minutes, and seemed easier than the
postfix/sendmail solutions I came across.

Of course, this only works in unixy environments.

thomas.

2007/9/27 brad clawsie [EMAIL PROTECTED]:
 jmuk's HaskellNet project from last year?

 http://darcs.haskell.org/SoC/haskellnet/HaskellNet/IMAP.hs

 sweet! was there any documentation created for this? examples?
 anything? have people tried to make this work with ssl/tls libs?

 by the way there looks like some other gems in the haskellnet
 dir. what exactly was haskellnet - a project to code to the major
 network protocols? are these libs stable? how does the HTTP lib stack
 up against Network.HTTP? any info on this project would be
 appreciated.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Sending email from a Haskell program

2007-09-26 Thread Peter Gammie

Hello,

Does anyone have a library for sending email from a Haskell program?  
I'd like something portable and cabalised.


I note there is code in darcs to send email on Windows and UNIX-y  
systems, and also something in WASH (I know not what). Apparently  
there is an SMTP server of some kind (?) in HAppS, but I want to re- 
use the system's MTA.


BTW is anyone else looking at the darcs codebase and thinking that  
there are many useful libraries lurking there?


cheers
peter
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Sending email from a Haskell program

2007-09-26 Thread Jeremy Shaw
At Wed, 26 Sep 2007 22:11:12 +0700,
Peter Gammie wrote:
 
 Hello,
 
 Does anyone have a library for sending email from a Haskell program?  
 I'd like something portable and cabalised.
 
 I note there is code in darcs to send email on Windows and UNIX-y  
 systems, and also something in WASH (I know not what). Apparently  
 there is an SMTP server of some kind (?) in HAppS, but I want to re- 
 use the system's MTA.

Another not-quite-there-yet solution is to use this library to create
a mime message:

http://www.n-heptane.com/nhlab/repos/haskell-mime/

In Text.MIME.Compose there is a wrapper for calling sendmail (so,
its not portable yet).

That MIME library is currently undergoing a very slow rewrite. The
next version will have a different API, and will have support for
things like attachments, multipart messages, etc.

If you just want to send basic text emails, the current version might
work for you...

j.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Sending email from a Haskell program

2007-09-26 Thread brad clawsie
an IMAP library might make for a good bounty project...i figure that
you would indeed need to pay someone to untangle that standard
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Sending email from a Haskell program

2007-09-26 Thread Don Stewart
clawsie:
 an IMAP library might make for a good bounty project...i figure that
 you would indeed need to pay someone to untangle that standard

jmuk's HaskellNet project from last year?

http://darcs.haskell.org/SoC/haskellnet/HaskellNet/IMAP.hs

-- Don
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Sending email from a Haskell program

2007-09-26 Thread brad clawsie
 jmuk's HaskellNet project from last year?
 
 http://darcs.haskell.org/SoC/haskellnet/HaskellNet/IMAP.hs

sweet! was there any documentation created for this? examples?
anything? have people tried to make this work with ssl/tls libs? 

by the way there looks like some other gems in the haskellnet
dir. what exactly was haskellnet - a project to code to the major
network protocols? are these libs stable? how does the HTTP lib stack
up against Network.HTTP? any info on this project would be
appreciated.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe