Displaying 20 results from an estimated 26 matches for "sent_at".
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
...'childsplay''})%>
--
In my page controller I have this:
--
def send_request
email = InfoMailer::deliver_sendrequest(params)
end
---
in my action mailer class I have this:
controllers/info_mailer.rb
---
class InfoMailer < ActionMailer::Base
def sendrequest(formparms)
sent_at = Time.now
@to = ''info@illinoisatplay.com''
@cc = ''nola@devasap.com''
@subject = ''Thank you for your request''
@recipients = ''''
@from = ''webserver@illinoisatplay.com''...
2008 Jul 02
3
attachment in mail
How to do the attachment in mail like the yahoo and gmail does?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
2006 Aug 10
4
Speeding up ActiveRecord creation?
...no validation callbacks etc etc) takes an
average of 0.05 seconds to create, at least according to
Benchmark.realtime{200.times{Message.create(:from =>
"me@here.com", :message_type => ''email'',
:subject => "hello", :body => "goodbye", :sent_at => Time.now)}}/200
That''s a little slower than I''m comfortable with for our needs. Is
there anything I can do to improve this?
I''m running Edge Rails, mysql 4.1 on FedoraCore 4 with a 3GHz Pentium 4.
Jon
2007 May 29
0
specs for ActionMailer
...to
rspec, and then changing/adding examples as I implement the emails.
In this scenario, an AdminNotify message is sent when a create action
of PagesController class completes.
-----------------
app/models/admin_notify.rb :
class AdminNotify < ActionMailer::Base
def itemcreated(item, sent_at = Time.now)
@subject = ''MySite: itemcreated''
@body = { :item => item }
@recipients = ''admin at gmail.com''
@from = ''mysite at gmail.com''
@sent_on = sent_at
@sent_on = sent_at
@headers...
2007 Jul 23
3
sending email
HI i am presently new to this ror language can you please send me the
stepwise procedure for sending the email ......
--
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
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 20
4
Ruby on Rails mailer
Today I made a first attempt to make use of ruby mailer. A volunteer
fills out a form and the information is then sent to an administrator.
I generated a mailer called notifier and added the following:
class Notifier < ActionMailer::Base
def volunteer_signup(volunteer, sent_at = Time.now)
@subject = ''A new volunteer has signed up''
@body = { :title => volunteer.title, :first_name =>
volunteer.first_name, :last_name => volunteer.last_name,
:id => volunteer.id }
@recipients = ''dsarosi-f/tn6ICKpJ...
2006 Jul 11
0
ActiveMailer HTML + Plain Text + Attachment?
...the standard methods. I have seen some old posting on the
mailing list about overriding the deliver method to add attachments
after creating the message.
Is this so? Does anyone have a working example?
Here is one of many contortions I have tried:
<pre>def answer(message, representative, sent_at = Time.now)
@subject = message.reply_subject
@recipients = message.sender.address
@from = message.team.reply_from_address
@sent_on = sent_at
@content_type = "multipart/alternative"
part "text/html" do |p|
p.body = render_message("a...
2006 May 05
1
ActionMailer with attachments, body is blank
...variable
holding the text of my mailer). However, if @ma is empty, it sees
@mycontent just fine. Suggestions?
Here is my mailer class:
class MarketingMailer < ActionMailer::Base
def standard_mailer
(_firstname,recipient,_subject,from_name,from_email,_content,_mailer_id,
_recipient_id,sent_at = Time.now)
@mailer = Mailer.find(_mailer_id)
@ma = @mailer.mailerattachments
@subject = _subject
@recipients = recipient
@from = from_name + " <" + from_email + ">"
@sent_on = sent_at
@headers[''X-Mailer''] = ''...
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 Feb 02
1
actionmailer - No rhtml, rxml, or delegate template
I''m getting this error when I try to send an email.
No rhtml, rxml, or delegate template found for signup_thanks
But I do have signup_thanks.rhtml in app/view/notifier
This is in the notifier model.
class Notifier < ActionMailer::Base
def signup_thanks(sent_at = Time.now)
@subject = "the subject works!"
@body["first_name"] = "first name"
@body["last_name"] = "last name"
@recipients = "test@xxx.com"
@from = "ror@xxx.com"
@sent_on = sent_at
@headers = {}
end...
2005 Apr 12
0
What does EOFError mean in ActionMailer?
I''m trying to implement a user verification phase in my user
registration controller.
So I do something like this from within my controller:
Notifications.deliver_verification(@user)
The method in the mailer object looks like this:
def verification(user,sent_at = Time.now)
@subject = ''Welcome to XXX''
@body = {}
@recipients = user.email
@from = "customerservice@XXX"
@sent_on = sent_at
@headers = {}
@body["user"] = user
end
But whenever it calls it gives me:
=============...
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.gmane.org''
@sent_on = sent_at
@headers = {}
create_sent_record # is this being called after
MyMailer.deliver_message???
end
end...
2009 Jul 30
0
Problem with implicit multipart emails using ActionMailer in Rails 2.3.3
...arlier versions of Rails ActionMailer used to implicitly send
multipart (text/plain and text/html) email messages for me, but it
looks like now it''s sending two text/plain parts.
Simplified details:
Here''s my model:
class Notifications < ActionMailer::Base
def confirmation(sent_at = Time.now)
@subject = ''Thank you for registering''
@body = {}
@recipients = ''test.recipient-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org''
@from = ''test.sender-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org''
@sent_on = s...
2008 Apr 09
1
Need help in passing parameters to a background job method
...result = worker.email_admin(''Some subject'',''And some body'')
render :text => "Check your email " + Time.now.to_s
end
================================
# Rails nodel code
class Emailer < ActionMailer::Base
def send_info(subject,message,sent_at = Time.now)
@subject = subject
@body = {:message => message}
@recipients = ''raghu.srinivasan at gmail.com''
@from = ''''
@sent_on = sent_at
@headers = {}
end
end
======================================
--------------...
2006 May 01
1
Best way to do task in background in Rails
Hey everyone,
I''m still getting up to speed with Rails and Ruby. Is there a best
practice technique for kicking off a thread to work on an activity in
the background?
Here''s the scenario: the user performs an action that triggers e-mails
to be sent. (I''m using ActionMailer). My app acknowledges with a message
to the user that the messages have been sent. I would
2008 Jun 10
7
ActionMailer undefined method `parameters' - Rails 2.1
...=> ''ourmailserver.whereiwork.com'',
:port => 25
}
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
#...snip
My "Notifications" Model:
class Notifications < ActionMailer::Base
def request(sent_at = Time.now)
subject ''Testing''
recipients [''me-pIHnvXQihALCENZMoErytg@public.gmane.org'']
from ''testmailerbot-pIHnvXQihALCENZMoErytg@public.gmane.org''
body :greeting => "WAUW"
end
end
The part of my...
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to
this php one?
http://tips-scripts.com/?tip=form_mail#tip
Or is it easier just to use the php with RoR?
--
Posted via http://www.ruby-forum.com/.
2006 Nov 01
2
How to: Individualized mass email with ActiveMailer - separate thread?
...ive approach we''re using is basically placing
the following code in the controller:
email.people.each do |p|
# This generates a custom email for that person, with fields such as
[:name:]
# filled with the person''s name
raw_email = PeopleMailer.create_general_email(email, p, sent_at)
raw_email.set_content_type("text/html")
begin
PeopleMailer.deliver(raw_email)
rescue Exception => e
email.log += "\n" + format_time(Time.now) + "\n" + e.message + "\n"
end
end
The problem is that generating the 500 individual emails takes...
2012 Jul 20
2
scheduling mails in 2.3.8
Hi all,
How can i send mails in rails 2.3.8 and schedule them when i need it.
i''ve tried with whenever gem but it did not work properly . can any one
help me out .
thanks in advance
--
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