This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit c1978643d17e267e69b8d7eb53a6aa49a4b60d66
tree bd8ed11c253884d983d61e545d5dd83428f0e06e
parent e93a99148fe51d1d1f96f57e9e625692ec364cce
tree bd8ed11c253884d983d61e545d5dd83428f0e06e
parent e93a99148fe51d1d1f96f57e9e625692ec364cce
pony /
| name | age | message | |
|---|---|---|---|
| |
README.rdoc | Mon Mar 16 13:03:37 -0700 2009 | |
| |
Rakefile | Tue Jan 13 15:40:34 -0800 2009 | |
| |
lib/ | Mon Mar 16 13:03:30 -0700 2009 | |
| |
spec/ | Mon Mar 16 13:03:30 -0700 2009 |
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
You can also specify options for SMTP:
Pony.mail(:to => 'you@example.com', :via => :smtp, :smtp => {
:host => 'smtp.yourserver.com',
:port => '25',
:user => 'user',
:pass => 'pass',
:auth => :plain # :plain, :login, :cram_md5, no auth by default
:domain => "localhost.localdomain" # the HELO domain provided by the client to the server
}
Meta
Written by Adam Wiggins
Patches contributed by: Mathieu Martin, Arun Thampi, Thomas Hurst, Stephen Celis, Othmane Benkirane, and Neil Mock
Released under the MIT License: www.opensource.org/licenses/mit-license.php







