Skip to content

damiencourousse/smtps-gmail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gmail SMTP Client

Introduction

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

Installation

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

$ git clone https://github.com/enzoh/smtps-gmail
$ cd smtps-gmail
$ cabal install

Usage

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

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

Resources

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

Enzo Haussecker <[email protected]>

About

Send email from your Gmail account.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%