Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created June 27, 2011 16:43
Show Gist options
  • Save jonpaul/1049249 to your computer and use it in GitHub Desktop.
Save jonpaul/1049249 to your computer and use it in GitHub Desktop.
def dealerimport_notification(contact, user)
@contact = contact
@user = user
if @contact.(params[:provider]) == 'CarForSale.com'
mail(
:to => '[email protected]',
:from => @user.email,
:subject => 'A New Listings Import Request has been made for CarForSale.'
)
elsif @contact.(params[:provider]) == 'CarThink.com'
mail(
:to => '[email protected]',
:from => @user.email,
:subject => 'A New Listings Import Request has been made for CarThink.'
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment