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

Thomas Hartman tphyahoo at
Fri Dec 5 15:39:14 EST 2008

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

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.


2007/9/27 brad clawsie <clawsie at>:
>> jmuk's HaskellNet project from last year?
> 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 at

More information about the Haskell-Cafe mailing list