Re: Has anyone got pony working with gmail on heroku?

2010-11-04 Thread morgoth


On 28 Paź, 20:04, Jimmy  wrote:
> @ morgoth
> Is mail gem easier to install than pony?  Pony seemed like a good
> option as it was on the sinatrarb site, and since it was written by
> Adam at Heroku, I was hoping for an easy install.


Gem pony since version 1.0 depends on mail gem, so why have another
gem that is doing the same thing?
I switched from pony to mail, after this update.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: SOLVED: Has anyone got pony working with gmail on heroku?

2010-10-28 Thread Jimmy
The example below works, it now uses via options instead of smtp, also
the body is now included, if some one out there is wondering what
ENV['TO_EMAIL'] is. These are environment variables that are easily
setup locally and on heroku. Its all explained here 
http://docs.heroku.com/config-vars

 Pony.mail :to => ENV['TO_EMAIL'],
  :from => params[:email],
  :subject =>  params[:subject],
  :body =>  params[:email] +" wrote:\n" +
params[:message],
  :via => :smtp,
  :via_options => {
  :address  => 'smtp.gmail.com',
  :port => '587',
  :user_name => ENV['GMAIL_USER'],
  :password => ENV['GMAIL_PASSWORD'],
  :authentication   => :plain,
  :domain   => "wavesummit.com"
}

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: SOLVED: Has anyone got pony working with gmail on heroku?

2010-10-28 Thread Jimmy
Just to follow up this is working, but doesn't include a 'body', and
the' from' will always be your gmail.
I'll post another example shortly.

Cheers, James

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Has anyone got pony working with gmail on heroku?

2010-10-28 Thread Jimmy
@ morgoth
Is mail gem easier to install than pony?  Pony seemed like a good
option as it was on the sinatrarb site, and since it was written by
Adam at Heroku, I was hoping for an easy install.



On Oct 28, 10:45 am, morgoth  wrote:
> You can also use mail gem.
>
> You can find my configuration of mail gem in sinatra applicaion in:
>
> http://github.com/morgoth/kasia/blob/master/app.rb

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Has anyone got pony working with gmail on heroku?

2010-10-28 Thread Jimmy

@Pedro,

I was able to install the latest version of Pony on heroku without
using smtp_tls.
I believe (correct me if I am wrong) it uses the latest version of
ActionMailer.
In my gems manifest I only have the following:
sinatra
pony
haml
maruku

Any dependencies are automatically installed.

Cheers, James

On Oct 27, 8:32 am, Pedro Del Gallego 
wrote:
> 2010/10/26 Jimmy :
>
> > Pony works locally, but on heroku I get the following:
>
> It's working fine for me.  Have you declared the gem "smtp_tls" in
> your .gems file?
>
> Here you have the code.http://gist.github.com/648619
>
>
>
>
>
> > 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> > spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
> > 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> > spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
> > 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> > spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
>
> > Is there a solution or alternative to sending mail from Sinatra using
> > Gmail and Pony?
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Heroku" group.
> > To post to this group, send email to her...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > heroku+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/heroku?hl=en.
>
> --
> -
> Pedro Del Gallego
>
> Email              :   pedro.delgall...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Has anyone got pony working with gmail on heroku?

2010-10-28 Thread morgoth
You can also use mail gem.

You can find my configuration of mail gem in sinatra applicaion in:

http://github.com/morgoth/kasia/blob/master/app.rb

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Has anyone got pony working with gmail on heroku?

2010-10-27 Thread Pedro Del Gallego
2010/10/26 Jimmy :
> Pony works locally, but on heroku I get the following:

It's working fine for me.  Have you declared the gem "smtp_tls" in
your .gems file?



Here you have the code.
http://gist.github.com/648619

>
> 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
> 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
> 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
>
> Is there a solution or alternative to sending mail from Sinatra using
> Gmail and Pony?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Heroku" group.
> To post to this group, send email to her...@googlegroups.com.
> To unsubscribe from this group, send email to 
> heroku+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/heroku?hl=en.
>
>



-- 
-
Pedro Del Gallego

Email              :   pedro.delgall...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



SOLVED: Has anyone got pony working with gmail on heroku?

2010-10-27 Thread Jimmy
I figured it out, I had used an example from http://github.com/benprew/pony

Works locally, doesn't work on heroku
Pony.mail :to => ENV['TO_EMAIL'],
  :from => params[:email],
  :subject =>  params[:subject],
  :via_options => {
  :address  => 'smtp.gmail.com',
  :port => '587',
  :enable_starttls_auto => true,
  :user_name => ENV['GMAIL_USER'],
  :password => ENV['GMAIL_PASSWORD'],
  :authentication   => :plain,
# :plain, :login, :cram_md5, no auth by default
  :domain   => "wavesummit.com" # the HELO
domain provided by the client to the server
}

However after reading http://blog.jpoz.net/2009/09/02/gmail-heroku-sinatra.html
and also cheking out adams page github http://github.com/adamwiggins/pony

This code below worked.

Pony.mail :to => ENV['TO_EMAIL'],
  :from => params[:email],
  :subject =>  params[:subject],
  :via => :smtp,
  :smtp => {
  :address  => 'smtp.gmail.com',
  :port => '587',
  :user_name => ENV['GMAIL_USER'],
  :password => ENV['GMAIL_PASSWORD'],
  :authentication   => :plain,
# :plain, :login, :cram_md5, no auth by default
  :domain   => "wavesummit.com" # the HELO
domain provided by the client to the server
}



Another gotcha is that in order to install pony rubygems needs to be
at least 1.3.6, debian only offers 1.3.5 through apt-get

On Oct 26, 6:04 pm, Jimmy  wrote:
> Pony works locally, but on heroku I get the following:
>
> 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
> 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
> 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
>
> Is there a solution or alternative to sending mail from Sinatra using
> Gmail and Pony?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Has anyone got pony working with gmail on heroku?

2010-10-27 Thread Richard Conroy
On Wed, Oct 27, 2010 at 12:23 PM, Phil Pirozhkov  wrote:

> look at padrino mailer if you are using sinatra, or active mailer if
> rails
> tmail gem is outdated, and pony depends on it
> you can either patch tmail or use patched as provided by tools i've
> mentioned
>
> you can also use SendGrid or any alternative addon
>
>
I got sendgrid working. It was pretty straightforward. I followed the
instructions on the heroku site directly.

-- 
http://richardconroy.blogspot.com | http://twitter.com/RichardConroy

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Has anyone got pony working with gmail on heroku?

2010-10-27 Thread Phil Pirozhkov
look at padrino mailer if you are using sinatra, or active mailer if
rails
tmail gem is outdated, and pony depends on it
you can either patch tmail or use patched as provided by tools i've
mentioned

you can also use SendGrid or any alternative addon

Phil

On Oct 26, 9:04 pm, Jimmy  wrote:
> Pony works locally, but on heroku I get the following:
>
> 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
> 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
> 2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
> spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
>
> Is there a solution or alternative to sending mail from Sinatra using
> Gmail and Pony?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Has anyone got pony working with gmail on heroku?

2010-10-26 Thread Jimmy
Pony works locally, but on heroku I get the following:

2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied
2010-10-25 16:07:48 1PAW8q-0006J3-Qr Failed to create spool file /var/
spool/exim4/input//1PAW8q-0006J3-Qr-D: Permission denied

Is there a solution or alternative to sending mail from Sinatra using
Gmail and Pony?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.