Gmail SMTP Client

Latest on Hackage:1.3.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed and maintained by Enzo Haussecker
#+TITLE: Gmail-Specific SMTP Client
[[][]] [[][]] [[][]]

*** Introduction

The ~smtps-gmail~ package provides an SMTP client
for sending Gmail. Communications between the client
and server are secured with TLS.

*** Installation

You should first get a clone of the ~smtps-gmail~
repository, and then install it from inside the
source directory:

#+BEGIN_SRC bash
$ git clone
$ cd smtps-gmail
$ cabal install

*** Usage

Below is an example using ghci, where Alice sends
an Excel spreadsheet to Bob using the SMTP client.

#+BEGIN_SRC haskell
> :set -XOverloadedStrings
> :module Network.Mail.Mime Network.Mail.Client.Gmail
> sendGmail "alice" "password" (Address (Just "Alice") "") [Address (Just "Bob") ""] [] [] "Excel Spreadsheet" "Hi Bob,\n\nThe Excel spreadsheet is attached.\n\nRegards,\n\nAlice" ["Spreadsheet.xls"] 10000000

** Resources

Feel free to contact me if you have any questions
or comments regarding this package.

Enzo Haussecker <>
comments powered byDisqus