Skip to content

wrl314/smtps-gmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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") "alice@gmail.com") [Address (Just "Bob") "bob@example.com"] [] [] "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 <ehaussecker@gmail.com>

About

Send email from your Gmail account.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published