The express way to send mail from Ruby.
Questions tagged [pony]
81 questions
1
vote
1 answer
sending file with pony by sinatra app - missing file
I want to send a email from my sinatra application.
Here is the code:
require 'pony'
class Cms < Application
get "/mail" do
Pony.mail :to => 'to@gmail.com',
:from => "from@gmail.com",
:subject => "Thanks…

karwan
- 252
- 4
- 15
1
vote
1 answer
2 forms on same page, Sending using Pony in Sinatra, same email address
i am using Pony.mail to send mail within Sinatra, what i have now is two forms, one that only sends an email address for subscription to newsletter and the second form is a contact form, both are going through the same action.
What I am trying to…

Richlewis
- 15,070
- 37
- 122
- 283
1
vote
1 answer
Sending mail with Pony and Sinatra
I am trying to send an email from a contact form (built in HTML) with the Pony Gem within sinatra, I have followed the docs but something must be missing.
This is the Pony config
get '/contact' do
erb :contact, :layout => :layout
end
post…

Richlewis
- 15,070
- 37
- 122
- 283
1
vote
2 answers
Does Pony support SSL/TLS for GMail (Yes!)
Does the Pony gem support e-mail with SSL/TLS? I'm trying to (easily) send e-mail with Google Apps on Heroku.
Thanks!
After jumping through several hoops, I found a combination of solutions that worked for me:…

arbales
- 5,466
- 4
- 33
- 40
1
vote
1 answer
no such file to load: pony (gem pathing)
Working in Windows 7, Rail 3.2.8.
Seems like I am missing a config step somewhere.
Trying to get Pony.options loaded via my environment.rb file.
The environment.rb contains:
require "rubygems"
require "pony"
but I get this error after starting…

vbsql7
- 684
- 2
- 9
- 17
1
vote
1 answer
Upload file form with Pony in Sinatra
I'm trying to get an upload form working in Sinatra using Pony. Right now everything works fine, the file's getting read, the emails gets mailed successfully, I just can't seem to get the attachment to attach. I don't think I'm calling the file's…

elnatnal
- 53
- 1
- 7
1
vote
1 answer
How to send a binary file via Pony?
I use below function to create a hash of the whole content of a directory so I can send all files as attachments.
def get_attachments_from_directory(dir)
attachment_to_send = Hash.new
Dir[dir.gsub("\\","/")+"/*"].each {|file|
…

Radek
- 13,813
- 52
- 161
- 255
0
votes
2 answers
Testing Email w/ Pony and RSpec in Rails 3.1
I tried using this How do I test Pony emailing in a Sinatra app, using rspec? to test a Rails 3.1 app sending emails. The sending works fine, but I'm having a hard time getting the tests to work. Here's what I have so far…

slabounty
- 704
- 11
- 21
0
votes
1 answer
Sending HAML emails with Pony
Sinatra 1.2.6 / Haml 3.1.2 and Pony
I am getting "wrong number of arguments error (0 for 1)" which points to
sinatra/base.rb
def haml(template, options={}, locals={})
render :haml, template, options, locals
end
I am sending :html_body => (haml…

Martin
- 351
- 3
- 8
0
votes
1 answer
Django ORM like select query in Pony ORM
I'm now to Pony ORM
and I have created my DB models like this:
class RSSSource(db.Entity):
title = Required(str, max_len=100)
link = Required(str, max_len=800)
key = Required(str, max_len=200)
description = Required(str,…

Mahdi Sorkhmiri
- 356
- 2
- 4
- 16
0
votes
1 answer
Pony mail in sinatra
How can I send mail to my gmail.com address using the Pony gem.
post '/contacts' do
@email = params[:email]
@messages = params[:messages]
end
I tried the one described here, but it doesn't work.
Pony.mail(
:name => params[:name],
…
0
votes
1 answer
How to maintain log of email status sent using Pony gem in Sinatra
I am using Sinatra Ruby for API and using Pony gem for sending emails. I want to log status of every mail sent (whether email was successfully sent or not, to whom it was sent etc.). I see only routing log in Sinatra console, but no any sign of…

Biki Maharjan
- 388
- 3
- 10
0
votes
1 answer
Why pyqt tablewigdet is only displaying row number and no data?
I wonder if the problem is from pony.orm or from my python code?
@db_session
def load_data(self):
result = db.execute("""SELECT * FROM Product""")
self.ui.tableWidget.setRowCount(0)
for row_number, row_data in enumerate(result):
…
0
votes
1 answer
Using Ruby Pony to send emails on RHEL 5.3 I get error NameError - uninitialized constant Net::SMTP::OpenSSL:
I have a Ruby sinatra application am using Pony to send emails. It works fine from my windows box. But after deploying to RHEL 5.3 server I get following errors.
NameError - uninitialized constant Net::SMTP::OpenSSL:
…

Ram
- 2,237
- 4
- 23
- 27
0
votes
1 answer
Python 3.6 with pony 0.7 gives error on commit to oracle db
I am using pony and python with above mentioned versions.
I am trying to do an insert by referring https://docs.ponyorm.com/firststeps.html
commit()
gives the following error:
type error : unhashable type: 'list'
This comes from:
obj2 =…

Desika
- 3
- 4