search for: deliver_message

Displaying 8 results from an estimated 8 matches for "deliver_message".

2009 May 28
1
Why won't my ActionMailer work inside the controller?
I''ve got a basic mailer setup and am simply trying to get a Hello message through. If I go into script/console and execute Emailer.deliver_message("myself-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org","My subject", "My message") it works fine. However, if I fire up a controller with a test method that invokes the same thing def test Emailer.deliver_message("myself-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org&quo...
2007 Nov 05
0
calling a method after deliver
Hi, I am trying to call a method after message is delivered via MyMailer.deliver_message. Is the below the same as this? MyMailer.deliver_message create_sent_record? class MyMailer < ActionMailer::Base def message( subject, body, recps, sent_at = Time.now) @subject =subject @body = body @recipients = recps @from = ''noreply-o5qfY/2Q8gk@public....
2008 Apr 04
5
First call to worker method doesn''t work
I have a worker as follows: class SampleWorker < BackgrounDRb::MetaWorker set_worker_name :sample_worker def create(args = nil) # this method is called, when worker is loaded for the first time end def my_method # Deliver test e-mail message Notifications.deliver_message(1, "DM") end end I have a rails controller that calls the following code: worker = MiddleMan.worker(:sample_worker) worker.my_method The problem is that the first time I load up the page for this action, the worker method "my_method" doesn''t seem to ever ge...
2009 Feb 08
2
SocketError in EmailController#correspond
...end end end def correspond user = User.find(session[:user_id]) recipient = User.find_by_user_name(params[:id]) @title = "Email #{recipient.name}" if param_posted?(:message) @message = Message.new(params[:message]) if @message.valid? UserMailer.deliver_message( :user => user, :recipient => recipient, :message => @message, :user_url => profile_for(user), :reply_url => url_for(:action => "correspond", :id => user.user_name) ) fla...
2010 Jul 29
1
permisions problems to setup dovecot lda in postfix with sieve
...connect(/var/spool/postfix/private/auth-master) failed: Permission denied (euid=500(xmail) egid=500(xmail) missing +x perm: /var/spool/postfix/private) log maillog: : : Jul 29 15:19:33 xxxx postfix/pipe[18600]: deliver_request_get: file active/7CF98168230 Jul 29 15:19:33 xxxx postfix/pipe[18600]: deliver_message: from <xxxxx at xxxxxxxxx> Jul 29 15:19:33 xxxx postfix/pipe[18600]: dict_eval: const /etc/dovecot/libexec/deliver Jul 29 15:19:33 xxxx postfix/pipe[18600]: dict_eval: const -f Jul 29 15:19:33 xxxx postfix/pipe[18600]: dict_eval: expand ${sender} -> xxxxx at xxxxxxxx Jul 29 15:19:33 xxxx...
2006 Jun 12
8
sending email
Hi, Has anyone got any good tutorials on how to send emails in ruby, seems a bit more complicted than PHP Thanks Scott -- Posted via http://www.ruby-forum.com/.
2008 Jul 24
0
Errno::EBADF Send an Email in Rails using GMail
...quest A Call Back'' firstname = email["firstname"] surname = email["surname"] email_address = email["email_address"] telephone = email["telephone"] message_body = email["message_body"] Emailer.deliver_message(recipient, subject, firstname, surname, email_address, telephone, message_body) return if request.xhr? flash[:notice] = "Email Sent Successfully." redirect_to ''/emailer/correspond'' end end in app/models/emailer.rb: class Emailer < ActionMai...
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 =>