The express way to send mail from Ruby.
Questions tagged [pony]
81 questions
39
votes
3 answers
What is the deal with the pony in Python community?
Pony references are in several places:
http://www.mail-archive.com/python-dev@python.org/msg44751.html
http://pypi.python.org/pypi/django-pony/
http://djangopony.com/
Is there a cultural reference that I am missing? What is the deal with ponies?

Sridhar Ratnakumar
- 81,433
- 63
- 146
- 187
30
votes
5 answers
Contact form in ruby, sinatra, and haml
I'm new to all three, and I'm trying to write a simple contact form for a website. The code I have come up with is below, but I know there are some fundamental problems with it (due to my inexperience with sinatra). Any help at getting this…

dcb
- 940
- 1
- 8
- 12
8
votes
1 answer
hostname does not match the server certificate - cannot send email
I am using Pony mail to send email messages (because I could never get ActionMailer to work on my local Windows box).
The code in my user_mailer.rb file include this call to the Pony.mail method:
Pony.mail({
:to => email_address,
:from =>…

vbsql7
- 684
- 2
- 9
- 17
7
votes
1 answer
Trouble sending html in email with Pony gem
I've found this gem to be a great and easy way to send mail but I can't seem to send any html in it. If I write the following:
Pony.mail(
:to => message[:to],
:from => @account[:from],
:subject => message[:subject],
:content_type =>…

Gerard
- 4,818
- 5
- 51
- 80
7
votes
2 answers
Rack/Sinatra LoadError: cannot load such file
I'm trying to build an app using Sinatra, Ruby, rack, haml, pony and SendGrid, with git and RVM for deployment on Heroku. The app is a blog variant that should send out an email with commentary submitted on a form. On my local server, when the form…

Kevin Swallow
- 145
- 1
- 1
- 5
4
votes
1 answer
GtkD with D lang on Fedora
I use Fedora20 and I install gtkd via
sudo yum install gtkd
How to compile gtk this code ?
import gtk.MainWindow;
import gtk.Label;
import gtk.Main;
void main(string[] args)
{
Main.init(args);
MainWindow win = new MainWindow("Hello…

Singularity
- 95
- 1
- 6
4
votes
2 answers
Undefined method `haml' when rendering haml in Pony mail from scheduled job
I have a sinatra app that executes cucumber tests and sends email notification with their results. Email gem is Pony, and there is a haml template for this notification.
This logic works within a route:
require 'sinatra'
require 'haml'
require…

Nikita Barsukov
- 2,957
- 3
- 32
- 39
3
votes
1 answer
Rails devise mail
Im trying to override devise in order to send mail to activate a user. In the create method in the registrations controller i have this
urlEmail = resource.email.sub('@','-')
Pony.mail(
:to => resource.email,
:from => "noreply@mysite.com",
…

jack
- 454
- 2
- 8
- 22
3
votes
1 answer
Python: Simple order by with Pony ORM
I try to implement a simple select with an order_by aggregation in pony orm:
So, I tried to ways:
The first way raise a error message:
sel = select((f.Name, f.id) for f in Firma).order_by(Firma.Name)
In this way, I get the error message from…

Georg Gutsche
- 452
- 4
- 9
- 17
3
votes
2 answers
Sending email from simple Sinatra app using Pony
I am building my first portfolio page with Sinatra.
I have a 'textbook' contact page with a straight-forward form containing 'name', 'email' and 'content' fields. When someone submits the form, I want to recieve an email notification.
Pony claims…

NickTerrafranca
- 109
- 1
- 8
3
votes
1 answer
GMX && Ruby Mail SMTP: "end of file reached"
I'm unable to get Mail (or Pony for that matter) to connect to send an email via a smtp server with credentials, port number, and address parameter I know are right. However, when using a mail client (thunderbird, ink...etc) I'm able to connect just…

sybohy
- 1,856
- 2
- 20
- 25
3
votes
4 answers
Deploying Sinatra app on Dreamhost/Passenger with custom gems
I've got a Sinatra app that I'm trying to run on Dreamhost that makes use of pony to send email. In order to get the application up and running at the very beginning (before adding pony), I had to gem unpack rack and gem unpack sinatra into the…

darkism
- 33
- 1
- 3
3
votes
3 answers
Pony doesn't send email body correctly when the attachment is .html file?
When sending emails with attachments (html files) to gmail the email body is not sent. If I comment out the attachment settings below it went ok. If it happens that the email doesn't have any attachments it went ok.
I tested out that the issues is…

Radek
- 13,813
- 52
- 161
- 255
2
votes
2 answers
Getting Pony or Mail gems to work with Sinatra / Heroku
I'm a Ruby newbie so apologies if this question is simple. And many thanks in advance for your help.
We have a Sinatra application that's been deployed onto Heroku. We're trying to add a page that sends a simple email. I've added the SendGrid…

mohith
- 43
- 1
- 5
2
votes
2 answers
Receive email in Ruby sinatra
Is there some way to receive emails with Sinatra? I've seen the pages that say how to do it with RoR, but none without. I have also found out how to send emails with the gem Pony. Thanks!

Jwosty
- 3,497
- 2
- 22
- 50