search for: send_mail

Displaying 15 results from an estimated 15 matches for "send_mail".

2008 Oct 25
7
Routing of result not clear in ActionMailer
Dear all, I am trying to understand the following behaviour of the ActionMailer in Rails 2. I have an emailer_controller.rb class EmailerController < ApplicationController def send_mail Emailer::deliver_contact_email(params[:email]) end end I have a model emailer.rb class Emailer < ActionMailer::Base def contact_email(email_params, sent_at = Time.now) @recipients = "webmaster-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org" @from = email_params[:...
2007 Oct 31
4
How you want BackgrounDrb to behave
..."starting the worker" end def receive_data p_data end # this is where a request from rails will be received. so implement this method # if you want to trigger your workers from rails. def receive_internal_data p_data self.send(p_data[:method],p_data[:data]) end def send_mail data end end And you can invoke a method in worker from rails using: # invoke method send_mail in newsletter_worker WorkerProxy.send_request(:worker => :newsletter_worker, :method => :send_mail, :data => @newsletter.id) # No Kidding, guys above code works. Also, as usual you define you...
2009 Nov 26
9
ActionView::TemplateError (can't convert ActiveRecord::Error into String)
I cannot work out why this error is appearing. ActionView::TemplateError (can''t convert ActiveRecord::Error into String) on line #3 of app/views/button/_show_enquiry.html.erb: 1: <h1>Send us a message</h1> 2: <% remote_form_for :enquiry, :url => {:action => ''send_mail''} do | f| %> 3: <%= error_messages_for ''enquiry'', :header_message => "Please try again!", :message => "We need you to change some items in order to send us a message:" %> 4: <table> 5: <tr><td>Name:</td>...
2006 Apr 21
1
Question on Active Mailer
Hi I want to create send emails to users as soon as a product is created; So I created scaffold for Product and before as soon as I do the save I call my send_email method in another controller; Now I want to pass on the Product record we created. I tried sending the product as @product, :product,etc. (tried all) and none work; my idea is to get the product record and put it in the email
2006 Aug 02
10
Ruby deamon
We are building a web-based application with Ruby on Rails and MySQL backend. The client now wants us to add various workflow features that will eventually expand into SOAP web services. These workflow features include tasks such as automatically sending reminders for due tasks, or if a particular set of information hasn''t been logged by a certain time to automatically send an email
2013 May 23
1
ORA-30678: too many open connections
.... *ORA-30678: too many open connections* ** * * *ORA-06512: at "SYS.UTL_TCP", line 28* * * *ORA-06512: at "SYS.UTL_TCP", line 257* * * *ORA-06512: at "SYS.UTL_SMTP", line 116* * * *ORA-06512: at "SYS.UTL_SMTP", line 139* * * *ORA-06512: at "APPS.SEND_MAIL", line 12* * * *ORA-06512: in Package EAM* note / first time i run it it created 16 rows succesfully but rows after 16 get this error . and when i want to run it again i must kill all open connections every time . how i can solve this problem . For API please find attached file . tha...
2010 Mar 04
5
has anybody made actionmailer work with rails 2.3.5?
Hi, I have wasted few days and I''m not getting anywhere. I was trying to follow tutorial on Rails Guides and this one: http://www.tutorialspoint.com/ruby-on-rails/rails-send-email.htm . All I need is to be able to send some text, nothing fancy. Why in Rails it has to be so difficult? Why it can''t be so simple as in PHP? Can anybody point me to some good simple tutorial,
2006 May 15
2
DO NOT REPLY [Bug 3778] New: rsync triggers ( pre/post xter scripts )
...LE_PATH=/tmp/TMP RSYNC_RAW_STATUS=-1 RSYNC_USER_NAME='' Is this a bug or I am not using proper config file. See the config section in rsyncd.conf log file = /tmp/RSYNC2.8.log [TMP] path = /tmp/TMP comment = /tmp/TMP read only = false uid = zhrumde gid = tivoli #pre-xfer exec = /tmp/send_mail.ksh post-xfer exec = /tmp/send_mail.ksh Thanks Hemant Rumde CitiGroup Boston MA -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
2006 May 03
2
Perplexing nested transaction issue
...a two objects with the following relationships: Mail has_many :recipients Recipients belong_to :mail I''d like to update the status of the Mail object while sending mails for each of it''s recipients. Following is a simplified example that I''m having problems with: def send_mail @mail = Mail.find params[:id] @recipients = Recipient.find_all_by_mail_id @mail.id processed = 0 logger.info "__Loop Start" @recipients.each do |recipient| recipient.status = ''ok'' logger.info "==Recipient Saved - #{recipient.save}&quo...
2006 Jul 19
7
Email Form for Contact Page
Can anyone point me to or provide me with code or a tutorial (preferably a tutorial) for creating simple contact forms where the data is sent over email to a specific email address. I have search all over the internet and there doesn''t see to be anything anywhere. Thanks In Advance, Alex. -- Posted via http://www.ruby-forum.com/.
2007 Dec 22
1
Backgroundrb Question
If I have a worker and everything set up and I call: MiddleMan.ask_status(:worker => :foo_worker) MiddleMan.ask_status(:worker => :foo_worker) MiddleMan.ask_status(:worker => :foo_worker) three times in quick succession. Will the tasks be queued up and executed as the previous one finishes? Or is this going to ignore the 2 bottom requests? How does this work? Do I absolutely need to
2008 Mar 13
0
mail problem and rails 2.0.2
...rails 2.0.2 Whenever i try to send a mail i get an error ''execution expired'' Please go through the following code if you can figure out something wrong. Do i need to change something for rails 2.0.2? My mailer model is as follows: class UserMailer < ActionMailer::Base def send_mail(person,textarea,subject) recipients person.email1 from "abc-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org" subject subject body textarea content_type "text/html" end end In the develeopment.rb i have the smtp settings as . . . # Check error if the mailer...
2007 Nov 17
2
ActionMailer 501: sender address must contain a domain
...gt; :login } [/code] And heres my method: [code] def confirm(customer) @subject = ''Sign up verification'' @body["customer"] = customer @recipients = customer.email @from = ''SilverSky'' @sent_on = Time.now end def send_mail customer = Customer.find_by_firstname("erkan1") email = CustomerMailer.create_confirm(customer) email.set_content_type("text/html") if CustomerMailer.deliver(email) render(:text => "Thank you" ) end [/code] Any help would be greatly appreciate...
2003 Jul 29
5
Sending emails from R under Windows
Hi Does anyone know of any R routines to send emails from R, under Windows? I thought about writing such a facility using the R(D)COM package to drive e.g. MS Outlook, but I don't want to reinvent the wheel. I have found a function Sys.mail in the library syskern, but this only works under Unix by shelling out a mail command. Thanks, David
2003 Jul 29
5
Sending emails from R under Windows
Hi Does anyone know of any R routines to send emails from R, under Windows? I thought about writing such a facility using the R(D)COM package to drive e.g. MS Outlook, but I don't want to reinvent the wheel. I have found a function Sys.mail in the library syskern, but this only works under Unix by shelling out a mail command. Thanks, David