arunthampi / pony forked from adamwiggins/pony
- Source
- Commits
- Network (29)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
a86a1e3
commit a86a1e3f36508e8899652954ade5f413645b868e
tree 3c47681309f03d83fa1f7e8f9abdf19a79cc61bc
parent 377be672209ae4da6cba501b444abc4f48441f2d
tree 3c47681309f03d83fa1f7e8f9abdf19a79cc61bc
parent 377be672209ae4da6cba501b444abc4f48441f2d
pony /
| name | age | message | |
|---|---|---|---|
| |
README.rdoc | ||
| |
Rakefile | ||
| |
lib/ | ||
| |
spec/ |
README.rdoc
Pony, the express way to send email in Ruby
Overview
Ruby no longer has to be jealous of PHP’s mail() function, which can send an email in a single command.
Pony.mail(:to => 'you@example.com', :from => 'me@example.com', :subject => 'hi', :body => 'Hello there.')
Any option key may be omitted except for :to.
Transport
Pony uses /usr/sbin/sendmail to send mail if it is available, otherwise it uses SMTP to localhost.
This can be over-ridden if you specify a via option
Pony.mail(:to => 'you@example.com', :via => :smtp) # sends via SMTP Pony.mail(:to => 'you@example.com', :via => :sendmail) # sends via sendmail
Meta
Written by Adam Wiggins
Released under the MIT License: www.opensource.org/licenses/mit-license.php

