The express way to send mail from Ruby.
Questions tagged [pony]
81 questions
0
votes
1 answer
Does gmail have to be logged in to send messages via Sinatra/Pony?
I'm currently using Pony with my Sinatra app and it's set up to send an email via gmail whenever a user registers. It works perfectly fine, however when a friend of mine tried to register he encountered an Internal Server Error.
He was successfully…

dibsonme
- 1
- 3
0
votes
1 answer
Sending mail with embedded image in Ruby
I want to send a mail with an attached image and embed this image in html. As a source for tag , What should I write and is there any missing header parts such a content_type ?
When I am doing real test, I send to a mail to my gmail account. I can…

Hakan Kara
- 225
- 1
- 2
- 13
0
votes
0 answers
Can't send mail via Pony and Ruby Sinatra, getting "End of File" error
I am trying to send mail through Pony and for some reason this "End of File" error shows up.........
EOFError at /contact-us
end of file reached
file: buffering.rb location: sysread_nonblock line: 182
Here's the setup:
require 'sinatra'
require…

Michael Stokes
- 401
- 1
- 10
- 24
0
votes
1 answer
Net::SMTPAuthenticationError when sending via Pony Mail using Ruby
I am trying to configure a contact form for a client. He has provided me the correct password and username from his email account. For some reason I always get the Authentication Error.
Here is the code:
post '/contact-us' do
require 'pony'
…

Michael Stokes
- 401
- 1
- 10
- 24
0
votes
1 answer
set REPLY-TO in email pony ruby
we have our API built in Ruby with Sinatra gem. and using Pony for sending emails. I want to set parameter reply-to. i have tried every possibility, even the way Pony gem docs say but its not working at all..
Our mailer code is
require…

Junaid Farooq
- 2,484
- 5
- 26
- 63
0
votes
1 answer
Sending attachment using ajax and sinatra
I have already sent emails using ajax and sinatra using pony and so tried to then add in attachments, but when I try to add it I cannot get it to send the attachment. It does send the email but the attachment is set as noname and when I change it's…

Simon245
- 178
- 2
- 19
0
votes
0 answers
T-Mobile email to SMS rejecting emails
edit: It appears that many people are having this problem.
I am using the Pony email gem to send SMS' to phone numbers in a Ruby on Rails app. It is hosted on Heroku. When sent from Pony, it works on AT&T and Verizon, but not on T-Mobile. But, when…

SamB
- 2,621
- 4
- 34
- 39
0
votes
1 answer
Sinatra with Pony always has the same email for from
I'm working through a contact form from Sinatra Jump Start and trying to figure out why the "From" is always the same gmail account I'm using as the :user_name. I have an Heroku version and it's also always the same :from. My goal is to have the…

kaplan
- 4,109
- 6
- 30
- 35
0
votes
0 answers
Redmine can't send email in daemon mode
I'm using Redmine 2.5.2 on Debian with webrick and Pony gem for sending e-mails.
When I run webrick in common mode (with -e), it sends fine. But when I'm running it in daemon mode (with -d) it falls with HTTP 500 error (and nothing is mentioned in…

Alexander Teut
- 323
- 1
- 3
- 14
0
votes
1 answer
Sinatra, Pony gem: NoMethodError
I am trying to send an e-mail using Pony and get the
NoMethodError at /
undefined method `address' for #Mail::Message:. error. This is my code so far:
post '/' do
Pony.options = { :from => '___@yandex.ru',
:via …

Evgenia Karunus
- 10,715
- 5
- 56
- 70
0
votes
1 answer
Formatting sent email from Pony.mail
I made a contact form for my web app using Pony. I have yet to figure out how to format the email with certain fields from the form. I would like the email formatted in the way below,
First Name: "user inputted first name"
Last Name: "user…

Seal
- 1,060
- 1
- 12
- 31
0
votes
2 answers
For loop through string array with array.each do not working?
I'm working on a basic contact form as part of learning Ruby where there are a string of email addresses in an array and the message in a contact form is sent to each one through Rails Pony.
ADDRESSES_BOOK = ['example1@example.com',…

Sciguy77
- 349
- 6
- 14
0
votes
1 answer
Weird behavior Pony mail Sinatra
I can send mail from my site fine using Sinatra and Pony mail.The problem lies in setting the body to use an erb template.
So my config is set like so
post '/' do
from = params[:name]
subject = "#{params[:name]} has contacted you"
body =…

Richlewis
- 15,070
- 37
- 122
- 283
0
votes
1 answer
username and password not accepted with pony gem in ruby
im trying to implement a simple form for my ruby website using pony and i keep getting the error '535-5.7.1 Username and Password not accepted.' I've typed in my own gmail username and password in the correct fields.
code in pony.rb
Pony.options =…

Arvid Boome
- 49
- 1
- 11
0
votes
1 answer
does pony send response when it fails?
i've been using ruby pony gem to send emails
https://github.com/benprew/pony#readme
unfortunately documentation is not as big as i wish, just shows few methods to send email, but seems that doesnt return any message when the mail cannot be…

alexserver
- 1,348
- 3
- 15
- 30