The express way to send mail from Ruby.
Questions tagged [pony]
81 questions
1
vote
0 answers
Rails 5 Resource Routing Error Only In Production
I have a perfectly normal resource defined by resources :products.
Update works fine in development, on my laptop on pony. Production is on a server I don't have a lot of control of, using phusion. Whenever I try to update it redirects mysteriously,…

caiocaiocaio
- 11
- 2
1
vote
1 answer
Pony ORM define Entity subclass before creating database
I'm creating a library that contains Bot class. I want it to be able to store messages logs and some other info in the sql database with the help of the pony orm. Idea is for the bot to accept the path to the database and create it or connect to it…

Petr Lavrov
- 31
- 4
1
vote
2 answers
pony.orm.core.ERDiagramError: Inconsistent reverse attribute
I am getting this error when specifying my tables on Pony ORM.
File "business.py", line 79, in
db.generate_mapping()
File "", line 2, in generate_mapping
File…

Ricardo Morais
- 41
- 1
- 4
1
vote
1 answer
How to place class in its own file when it appears to be inheriting from an instance?
Background: I'm using this guide; Pony Orm. It tells me to create an object (db = Database()), then create a class that inherits from db (class Person(db.Entity)....). As far as I can tell, Person is inheriting from an instance - I didn't even know…

SteveJ
- 3,034
- 2
- 27
- 47
1
vote
2 answers
RUBY: Pony email attachment error
Pony.mail(:to => ad.to_s, :via => :smtp, :via_options => {
:address => 'smtp.gmail.com',
:port => '587',
:enable_starttls_auto => true,
:user_name => 'login',
:password =>…

Irbis
- 11
- 1
1
vote
1 answer
PonyLang Windows CreateProcess FFI
I've been trying to call Window's CreateProcessA from Pony Language's FFI.
I created both a C and a PonyLang example. The C example works great:
#include
#include
#include
void wmain(void) {
STARTUPINFO…

efel
- 1,054
- 3
- 14
- 29
1
vote
1 answer
Pony ORM PermissionError in access rule for to_json function
I have a problem trying to grasp and to understand why its happen.
i'm using Pony ORM, https://ponyorm.com, for models the problem i'm trying to solve.
I'm trying to send the query result in json format using to_json function from database…

greenshirt
- 41
- 2
1
vote
1 answer
How to send mail with Sinatra using Pony?
I am having trouble sending email using the contact form I built in Sinatra. I'm using the Pony gem. For some reason I get this error saying 'No such file exist-which sendmail'. I have installed 'sendmail' and I'm still having the same issue. I'm…

Michael Stokes
- 401
- 1
- 10
- 24
1
vote
1 answer
'Area' object is not callable
I have database on Mysql and in project I use pony orm in Flask. I need to get row from database with index 1.
Here I have routes for routing in app
routes.py
from app import app
from pony.orm import *
from app.models import…

John Smit
- 159
- 1
- 1
- 8
1
vote
1 answer
Pony yandex.ru and mail.ru specifics
I am creating a form in Sinatra that will be sending data to an e-mail on submit using Pony gem. This is my code so far:
post '/pemco' do
Pony.mail(
:from => params[:name] + "<" + params[:email] + ">",
:to => '___@yandex.ru',
:subject =>…

Evgenia Karunus
- 10,715
- 5
- 56
- 70
1
vote
0 answers
Getting Ruby contact form working with Pony, Sinatra and Middleman
I'm creating a contact page with the usual form, and I found Pony which seemed to fit the bill for what I needed. The site is basically static, so is built using Middleman, but I've been reading around and figured to add a contact form Sinatra would…

aurumpotestasest
- 766
- 7
- 18
1
vote
1 answer
attaching multiple csv files in Pony
I am new to Pony. In my sinatra application I am sending mail by using Pony. But the problem I am facing with sending multiple csv files as attachments. In mail I am getting only one file noname.csv with content of all the files. But I don't want…

Joy
- 4,197
- 14
- 61
- 131
1
vote
2 answers
Ruby Pony Gem, how to have newline in body of email
I am using the ruby pony gem to send an automated email in my program. The problem is I cannot figure out how to give it a newline.
For example I give it,
:body => 'first line\nsecond line'
and that is what I get in the email is:
first…

Richard
- 239
- 1
- 3
- 14
1
vote
1 answer
Pony throws NoMethodError
I have this spec:
describe EmailerHelper do
describe "send email" do
include EmailerHelper
include Pony::TestHelpers
before { sendUBEmail('nobody@nowhere.net','Test Subject','Test Body') }
it "Pony has received the email" do
…

pandabrand
- 397
- 1
- 13
1
vote
1 answer
How to get pony to set proper envelope sender?
I'm using Ruby with Pony to send email. I can't seem to get the envelope sender to be changed to what I want; something in Pony or the code underneath it always substitutes the user_name parameter.
Any suggestions for this? I can get a text name…

Mark McWiggins
- 621
- 6
- 20