Re: What is the expected Sendgrid add-on delay in sending outbound email?

2010-10-17 Thread lanceball
I've also found it's important that the sender's email address
actually match the domain you are sending from or Sendgrid will drop
it.

On Oct 16, 12:23 am, Rob da...@coaster.com wrote:
 For me, the emails come very quickly -- seconds. I have found that
 your outbound mail needs to have an email address in the From field or
 Sendgrid will silently drop the message.

 Rob

-- 
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.



Sendgrid Basic Failing With Custom Domain But OK on heroku.com Domain

2009-12-08 Thread lanceball
Hi there

I'm using the sendgrid basic addon and I'm a little stumped.  I get a
500 error when sending mail from my custom domain, but not from
myapp.heroku.com.

My mailer is very simple - an observer that sends out email on save of
an AR object.  And like I said, everything works just fine when I'm
navigating the app using the myapp.heroku.com domain.

I've set config.action_mailer.raise_delivery_errors = true in
production.rb

But heroku logs show me nothing.  Here's what I see in the logs after
a restart of the app and then a test resulting in the 500 error.

Otherland:$ heroku logs
== production.log ==
# Logfile created on Tue Dec 08 08:24:18 -0800 2009
== dyno-455072.log ==
Otherland:$

If I use the heroku console to create the AR object mail is sent just
fine.  Here's what that looks like:

 Contact.inspect
= Contact(id: integer, name: string, email: string, message: text,
created_at: datetime, updated_at: datetime)
 Contact.create!(:name='foo', :email='f...@bar.com', message='hello world')
NameError: undefined local variable or method `message' for #Object:
0x2b6a4f52a348 @heroku_console_output=[]
 Contact.create!(:name='foo', :email='f...@bar.com', :message='hello 
 world')
= #Contact id: 6, name: foo, email: f...@bar.com, message: hello
world, created_at: 2009-12-08 16:28:44, updated_at: 2009-12-08
16:28:44


My controller is pretty basic...

class ContactsController  ApplicationController
  def create
@contact = Contact.create!(params[:contact])
flash[:info] = 'Your message has been sent. Thanks!'
redirect_to contact_path(@contact)
  end
end

My observer:

class ContactObserver  ActiveRecord::Observer
  def after_create(contact)
ContactMailer.deliver_contact_message(contact)
contact.logger.info(Contact from #{contact.name} sent)
  end
end

My mailer:

class ContactMailer  ActionMailer::Base
  def contact_message(contact)
recipients 'aliciac...@yahoo.com'
bcc 'la...@shovelpunks.com'
subject New aliciachatham.com Message from #{contact.name}
from 'mai...@aliciachatham.com'
body :contact=contact
  end
end


This is all Rails 101 stuff, so I'm baffled as to why it's not
working.  Can anyone point me in the right direction?  I'm at a bit of
a loss at this point.

Thanks,
Lance

--

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: Sendgrid Basic Failing With Custom Domain But OK on heroku.com Domain

2009-12-08 Thread lanceball
David

Thanks for the quick reply!  I've submitted a support ticket and
answered your questions there.  Here's a link.

http://support.heroku.com/requests/2977

Thanks again!
Lance

On Dec 8, 11:48 am, David Dollar da...@heroku.com wrote:
 A couple of questions:

 1) What is the name of your app?  (the bit before .heroku.com)
 2) When you say sending mail from do you mean the from address?
 3) Where are you seeing the 500 error

 If you'd like to take this off-list, please submit a support ticket 
 athttp://support.heroku.comso we can help you track down the problem.

 - David



 On Tue, Dec 8, 2009 at 11:39 AM, lanceball lanceb...@gmail.com wrote:
  Hi there

  I'm using the sendgrid basic addon and I'm a little stumped.  I get a
  500 error when sending mail from my custom domain, but not from
  myapp.heroku.com.

  My mailer is very simple - an observer that sends out email on save of
  an AR object.  And like I said, everything works just fine when I'm
  navigating the app using the myapp.heroku.com domain.

  I've set config.action_mailer.raise_delivery_errors = true in
  production.rb

  But heroku logs show me nothing.  Here's what I see in the logs after
  a restart of the app and then a test resulting in the 500 error.

  Otherland:$ heroku logs
  == production.log ==
  # Logfile created on Tue Dec 08 08:24:18 -0800 2009
  == dyno-455072.log ==
  Otherland:$

  If I use the heroku console to create the AR object mail is sent just
  fine.  Here's what that looks like:

   Contact.inspect
  = Contact(id: integer, name: string, email: string, message: text,
  created_at: datetime, updated_at: datetime)
   Contact.create!(:name='foo', :email='@bar.com', message='hello
  world')
  NameError: undefined local variable or method `message' for #Object:
  0x2b6a4f52a348 @heroku_console_output=[]
   Contact.create!(:name='foo', :email='@bar.com', :message='hello
  world')
  = #Contact id: 6, name: foo, email: f...@bar.com, message: hello
  world, created_at: 2009-12-08 16:28:44, updated_at: 2009-12-08
  16:28:44

  My controller is pretty basic...

  class ContactsController  ApplicationController
   def create
    �...@contact = Contact.create!(params[:contact])
     flash[:info] = 'Your message has been sent. Thanks!'
     redirect_to contact_path(@contact)
   end
  end

  My observer:

  class ContactObserver  ActiveRecord::Observer
   def after_create(contact)
     ContactMailer.deliver_contact_message(contact)
     contact.logger.info(Contact from #{contact.name} sent)
   end
  end

  My mailer:

  class ContactMailer  ActionMailer::Base
   def contact_message(contact)
     recipients 'aliciac...@yahoo.com'
     bcc 'la...@shovelpunks.com'
     subject New aliciachatham.com Message from #{contact.name}
     from 'mai...@aliciachatham.com'
     body :contact=contact
   end
  end

  This is all Rails 101 stuff, so I'm baffled as to why it's not
  working.  Can anyone point me in the right direction?  I'm at a bit of
  a loss at this point.

  Thanks,
  Lance

  --

  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.comheroku%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.

--

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.




Problem Adding a Collaborator

2009-05-07 Thread lanceball

Hello

I have been trying to add a collaborator to my app this morning and
have some very strange results.  All email addresses except 1 work
fine.  For some reason Heroku thinks that juneallison is already a
collaborator when I try to add her.  But heroku info doesn't show her,
and I can't remove her as a collaborator.  I can add other
collaborators just fine.  Anyone experience anything like this
before?  Very odd.  Here's a transcript illustrating the problem.  The
email address domains have been changed.

Otherland:$ heroku sharing:add junealli...@example.com
Email has already been invited
Otherland:$ heroku sharing:remove junealli...@example.com
User not found
Otherland:$ heroku sharing:add junealli...@example.com
Email has already been invited
Otherland:$ heroku info
=== wncrfp
Web URL:http://wncrfp.heroku.com/
Domain name:http://wncrfp.shovelpunks.com/
Git Repo:   g...@heroku.com:wncrfp.git
Collaborators:  la...@example.com
j...@example.com
Otherland:$ heroku sharing:add lanceb...@anotherexample.com
An invitation has been sent to lanceb...@anotherexample.com for them
to join Heroku and become a collaborator on wncrfp.
Otherland:$

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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
-~--~~~~--~~--~--~---