| CARVIEW |
adamwiggins / pony
- Source
- Commits
- Network (28)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
Branches (1)
- master ✓
- Tags (0)
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
The official fork is now maintained by benprew in https://github.com/benprew/pony — Read more
| name | age | message | |
|---|---|---|---|
| |
README.rdoc | Sun Nov 15 15:26:59 -0800 2009 | maintainership given to benprew [Adam Wiggins] |
| |
Rakefile | Mon Mar 16 13:03:42 -0700 2009 | v0.3 [Adam Wiggins] |
| |
lib/ | Mon Mar 16 13:03:30 -0700 2009 | spaces to tabs [Adam Wiggins] |
| |
spec/ | Mon Mar 16 13:03:30 -0700 2009 | spaces to tabs [Adam Wiggins] |
This fork is no longer maintained. Please visit: github.com/benprew/pony
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',
:password => 'pass',
:auth => :plain, # :plain, :login, :cram_md5, no auth by default
:domain => "example.com" # 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
