Displaying 20 results from an estimated 30000 matches similar to: "how to create a mailer"
2011 Aug 07
2
PROBLEM WITH PAPERCLIP
hello,
i am trying to upload a image file ...using paperclip in rails 3
i did as follows
1. In gemfile => included gem paperclip
2.In config/environments /development.rb => Paperclip.options[:command_path]
= "/usr/bin/" (convert path)
3.created a controller *picusers *and defined => def create
@picuser = Picuser.create(params[:picuser])
end
4.created a model *picuser
2011 Jul 31
8
Add virtual attribute
Hi!
Let''s say I have an app that handles a TODO list. The list has finished and
unfinished items. Now I want to add two virtual attributes to the list
object; the count of finished and unfinished items in the list. I also need
these to be displayed in the json output.
How do I achieve that?
Best Regards
Linus
--
You received this message because you are subscribed to the Google
2013 Sep 11
2
Mandrill mail problem
Hello All,
I am trying to use Mandrill api in my rails app.
I am getting this error every time:-
Net::SMTPServerBusy (401 4.1.7 Bad sender address syntax)
I am using Ruby - 1.9.3, rails - 3.2.8, Thin server, & Ubuntu 12.10.
in Gemfile:-
gem "mandrill-api", "~> 1.0.45"
gem ''mandrill_mailer''
application.rb:-
config.action_mailer.default_url_options
2012 Oct 08
11
Problems setting gmail mail
Hello,
as attachment my problems concerning gmail Mailer errors in Rails. I
hope anyone can help me out with the problem?
If there is extra information needed, please tell me what you need more
to help me out of my problems!
Greetings!
Attachments:
http://www.ruby-forum.com/attachment/7790/errnoECONNREFUSED.jpg
--
Posted via http://www.ruby-forum.com/.
--
You received this message
2012 Feb 24
3
Devise generates Mailer by its own?
Rails 3.1.3
Hi. I''m a little confused with Devise and ActionMailer.
It seems that Devise has its own way of sending mails through
ActionMailer.
Does it generate Mailer class when "rails g devise..." command is
executed?
Or do I need to do some special command in order to generate Mailer?
I have certainly set up a devise User table but there is no Mailer class
for it,
2011 Aug 05
1
uploading picture
hi
how to upload picture in rails 3... as in the file attached with this mail.
--
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 email to
2011 Nov 11
1
time zone not getting saved in the database
Hello,
Using rails 2.3.9 and ruby 1.8.7
I am trying add time zone in the site according to user''s time zone
(selected by the user from the drop down of time zones)Code is done as
follows, but time zone is not getting saved in the database.
IN Application Controller
before_filter :set_time_zone
def set_time_zone
Time.zone = current_user.time_zone if current_user
end
IN View
2011 Mar 07
2
One Mailer for all
Can I have one mailer for all? Would that be called
application_mailer.rb
--
Posted via http://www.ruby-forum.com/.
--
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 email to
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 =>
2011 Mar 21
2
Action Mailer - Proxy Settings.
Hi,
I am developing a rails app on a system which connects to internet
through proxy.
I am facing difficulties while Action Mailer tries to send mails.
It says, Time Out Error.
But when I try to run the code in the system which is directly connected
to internet without proxy, The mails are sent correctly.
Can somebody help me out it in this?
Cheers,
Charanya
--
Posted via
2010 Mar 18
3
Sending mail using action mailer
Hi everyone,
I am new to ruby and i just wanna send an email using ruby action
mailer. i have been trying it for about a day. Not achieved. so many
replies came in from google but many were beating the bushes ..
can any one send me a correct procedure..
regards
ds
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
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
2010 Feb 08
0
recommending friends, using RoR's Mailer
Hi there, I wan tto be able to allow users to invite friends...
The action below is exactly the same as the code used to send a user
their username. Only difference is, I need to change the ''''user =
User.find_by_email(email)'''' part as obviously, I dont want to only
email people who are already on the site.
def invite
@title = "Invitation"
2010 Nov 09
3
Rails 3 Action Mailer issue
Hi All,
I am trying to send an email on a user sign up. The email is working
without any issues. However there is a problem with the :from field
that I am specifying. My SMTP setting look like :
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => "587",
:domain => "test.com",
2013 Jul 09
5
whenever gem
Hello All,
I want to schedule a mail every day.
I used whenever gem.
I added gem ''whenever'' in my gemfile. Then in the terminal I did -
"whenever ." which created a schedule.rb.
In schedule.rd I added this piece of code:-
set :environment, "development"
every 2.minutes do
runner "UserMailer.some_method"
end
Does it get invoked
2011 Nov 01
2
Duda con action mailer
Hola,
soy nuevo en RoR y tengo un problema con action mailer
cuando uso el rubygem el gestor de paquetes y pongo:
gem list --local
me sale:
actionmailer <1.2.5>
lo cual indica que lo tengo instalado, el proble a es el siguiente
he configurado el fichero environment.rb para poder trabajar con
actionmailer , he creado el formulario y casi todo lo que necesito
el punto critico llega cuando
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"
2011 Jan 17
3
Getting Hostname in mailer view
Hi everyone,
I need to build a url in my mails view. For restfull resources I can use
routing and "..._url" target. But for custom url I don''t know how I
get the hostname of my web app.
I didn''t know how I can get get the value specified on
config.action_mailer.default_url_options = {:host =>
"here_my_host_i_want_get" }
Thanks for reply
Vincent
--
2011 Aug 16
2
Mailer failure: ArgumentError: A sender (Return-Path, Sender or From) required to send a message
I have two mailer procedures in the same app and same mailer (Rails
3.1/1.9.2). The first one fails with the message below, the second works
fine. Both these results are through irb. Anyone have an idea as to why?
Also, in my application.rb I do have: ActionMailer::Base.default :from =>
"WaveLineup <system-+T6PWOEcvEy41k5uCYKmRQ@public.gmane.org>" defined.
FAILS
def
2012 Feb 14
6
SMTP problem.
Hey all, well I am trying to send emails to newly created users but I
have a problem.
In the rails log it states that the email has been sent but the email is
never actually received so obviously there is a problem.
I have noticed one in particular and I don''t understand how to fix it.
Once I create the user I get the following error message:
Net::SMTPAuthenticationError (535-5.7.1