Displaying 20 results from an estimated 700 matches similar to: "recommending friends, using RoR's Mailer"
2009 Nov 11
1
getaddrinfo: nodename nor servname provided, or not known
Hi there,
If I want to create email within my application (in production), how
is this best achieved??
Following the railsspace tutorial, it only really suggests to
use :smtp.
I''d read on another site that to generate emails locally, i need to
use :sendmail instead... However - I havent seen any decent examples
of how to get this configured to be able to send emails within my
local
2009 Feb 08
2
SocketError in EmailController#correspond
SocketError in EmailController#correspond
getaddrinfo: no address associated with hostname.
Please see above, these are the errors i get when i try to email a user
on my networking site. Can you help please.
Actionmailer address = smtp.vodafone.ie
Below is code used for the email controller in
apps/controllers/email_controller.rb There doesnt seem to be any code
missing. Can someone help with
2008 May 03
2
ActionMailer Multiple recipients
I am using ActionMailer to send mails. I want to send mails to
multiple recipients which I get from a view. Here is the controller
code.
def groupcorres
user = User.find(session[:user_id])
address = Array.new
lines = Array.new
args = params[:id].to_s # params[:id] is an array of user screen
name. ex: j_doe, d_john
lines = args.split(",")
for line in lines
2010 Mar 10
6
Email section
Sir , I want to implement email section in ma web application..
so i found the method ''server_setting'' for it...
Following is the method:
config.action_mailer.server_settings = {
:address => "smtp.gmail.com" ,
:port => 25,
:domain => "gmail.com" ,
:authentication => :login,
:user_name => "manish" ,
:password =>
2010 Dec 11
0
Rails 3 - Delayed_Job (collectiveidea), trying to Delay Mailers - Error: NoMethodError (undefined method `delay' for UserMailer:Class):
Hello, I have the following in an observer:
UserMailer.delay.msg_notification(record)
In user_mailer.rb
class UserMailer < ActionMailer::Base
...
def msg_notification(record)
mail(
:to => "#{record.user.email}",
:subject => "Notification"
)
end
..
end
But this errors with:
NoMethodError (undefined method `delay'' for
2011 Aug 04
1
how to create a mailer
hi,
i got a problem in creating a mailer using rails g mailer UserMailer .. used
to send a mail to the user entered e mail-id ...in the form.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send
2011 Jul 07
0
Rails3 Mailer html / text versions order
I am sending the emails as per the documentation order : html /
text
but users are receiving the text version first and not the html ( need
to switch to an alternative version ..)
I guess I missed a point but which one ?
thanks for your help
RAILS DOC ========
class UserMailer < ActionMailer::Base
default :from => "notifications-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
2007 Dec 17
2
undefined method `param_posted?'
I upgraded an app to 2.01 and can''t figure out why I am getting a
undefined method `param_posted?'' for #<ControlPanelController:
0xb748ba18>
The controller should be inheriting this.
class ControlPanelController < ApplicationController
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2010 Feb 10
16
nil object - can anyone help?
Hi there,
I''ve been looking for a while now and can''t seem to find where I''m
going wrong..
I''m following a railscast tutorial to send invites out to people.
there''s n invitation.rb page:
class Invitation < ActiveRecord::Base
#attr_accessible :sender_id, :recipient_email, :token, :sent_at
belongs_to :sender, :class_name =>
2010 Nov 28
2
Dynamic find_by method returning nil in a class method
I have a user Model with a class method that I am using to do some
authentication
basically something like this
class User < ActiveRecord::Base
attr_accessor :password
attr_accessible :first_name, :last_name,
:email, :birth_date, :sex,
:password, :password_confirmation
email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
validates :first_name,
2011 May 06
3
Why returns nil?
Hi everyone, I''d like some help to understand this method:
def self.authenticate(email, submitted_password)
user = find_by_email(email)
return nil if user.nil?
return user if user.has_password?(submitted_password)
# Don''t understand why it doesn''t return user instead of nil
# since ''user = find_by_email(email)'' was the last
2009 Dec 21
2
Multiple email recipients
I''m trying to call multiple email addresses from database. But dont
know how to get the logic into the recipients field.
#subscriptions_controller
def deliver
@subscription = Subscription.find(params[:id])
@users = @subscription.users
@subscription_recipients = @users.find(:all).collect { |user|
user.email }
@subscription.deliver
flash[:notice] = "Delivered
2011 Sep 22
2
find_by_email dynamic method returning new
Hello everyone,
I have a rails app which uses email as login name. At some point, I
have to search the user, in the User model by email. For some reason,
the method User.find_by_email(email) returns nil, even though the user
is in the database.
The same applies for any find_by_* method that searches by any
database column. I was able to find the user using the User.find
Does anyone have an idea
2006 Jun 07
0
Refreshing remote :through associations with deletes
Hi everyone,
I''m refreshing the local Rails database from a remote database every
10 minutes. I''m using a :through association to relate people to
mailinglists through subscriptions.
# Works fine, every 10 minutes:
remote_lists.each { |list| List.find_or_create_by_name(list.name) }
remote_subscribers.each do |subscriber|
person = Person.find_by_email(subscriber.user)
2006 Apr 27
11
Action Mailer Error!!!
What does this mean?
Bad file descriptor - connect(2)
--
Posted via http://www.ruby-forum.com/.
2006 Nov 09
2
help with join tables and has_and_belongs_to_many
Hi,
I have a user model and a privilege model. They have the
has_and_belongs_to_many relationship. Here are the model defs:
class User < ActiveRecord::Base
belongs_to :status
has_and_belongs_to_many :privileges
end
class Privilege < ActiveRecord::Base
has_and_belongs_to_many :users
end
Now I have a migration script to create the join table and populate a
few users with some
2007 Oct 24
1
Attachment_fu and observers/emailing
Hi all,
I''m developing a site where a user can upload their CV/resume with a
profile, and am using restful_authentication for this with
attachment_fu to handle the file uploading.
When a user creates their profile/user account, I''ve got an observer
that will email the site admin with a copy of the uploaded CV. My
user_observer looks something like:
class UserObserver <
2011 May 20
0
delayed_job - Undefined method error even with Mongrel
Any delayed_job gurus out there? This is a known issue on the wiki as
described at the bottom here:
https://github.com/collectiveidea/delayed_job/wiki/Common-problems
However, even when running Mongrel (on Rails 3.0.3, ruby 1.9.2, Win7)
after replacing Webrick) I am still getting this issue. My delayed_job
handlers read:
--- !ruby/struct:Delayed::PerformableMailer
object: !ruby/object:Class
2007 Nov 12
1
help debugging ActionMailer with restful_authentication?
In a nutshell, I''m using restful_authentication that emails the user
when they sign up for an account
The development.log file shows the body of the e-mail message being
prepped to send out, but doesn''t show confirmation that it made it.
When I use gmail''s SMTP server, a Rails exception is thrown because
gmail expects an encrypted connection. A different type of Rails
2012 Sep 20
4
access controller's object attributes in view page
Hi,
I am new to ROR and learning it. In my controller I have an admins
record and I am passing that admin object to the admin''s view page to
get the name of the admin. But when I try to access the name it is
showing error as "undefined method `name'' for :current_admin:Symbol"..
Please help..
Please find my code below
Sessions Controller
def create