Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
OCaml Library for Amazon Simple Email Service (SES)
OCaml
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
Makefile
README.md
_oasis
_tags
myocamlbuild.ml
setup.data
setup.log
setup.ml

README.md

ocaml-ses

OCaml library for Amazon Simple Email Service (SES) => http://aws.amazon.com/ses/

Made to be integrated into a ocsigenserver project.

Installation

make && make install should do the trick

Dependencies

Usage

All action and data type are implemented as describe in ses api.

Check http://docs.amazonwebservices.com/ses/latest/APIReference/Welcome.html?r=5201 for more information.

# Basic function to send a mail:
let creds = {
  aws_key = "YOUR_AWS_KEY";
  aws_secret = "YOUR_AWS_SECRET";
} in
send_basic_email ~creds ~from_:"from@example.com" ~to_:"to@example.com" ~subject:"A subject" ~message_html:"A message" ()

All function raise 'Ses_error (type,code,message)' in case of error. For type, code and message errros check http://docs.amazonwebservices.com/ses/latest/APIReference/CommonErrors.html (for common errors) and http://docs.amazonwebservices.com/ses/latest/APIReference/API_Operations.html (for error specifiques to actions)

Authors

Marc Simon

marc.simon42@gmail.com

Something went wrong with that request. Please try again.