Displaying 20 results from an estimated 41 matches for "sent_on".
Did you mean:
mention
2005 Dec 15
2
efficient INSERTS
Hi,
I''ve got the following models:
Company
Package
with a habtm relationship.
In my controller, I have a ''dispatch'' action which does the following
@companies.each do |company|
@packages.each do |package|
company.packages.push_with_attributes(package, :sent_on => Time.now)
end
end
my table ''companies_packages'' therefore lists which company was sent which
package at what time.
If I''m sending 20 packages to 20 companies though, I generate 400 INSERT
statements. Is there a rails way of doing this more efficiently?
i.e. gen...
2005 Mar 29
0
ActionMailer tmail/quoting.rb problem
...y
#=> " foo\n"
# because text.gsub(/_/," ")
If you enhance TMail::Mail#body like this,
I want you to convert mail.body code in render_body.
My mailer code now:
# topic is a ActiveRecord instance. topic attrs encoding is Shift_JIS.
mail = Notifications.create_invoice(sent_on, {"topic"=>topic})
# convert from Shift_JIS to ISO-2022-JP
# mail.body is incompatible between 1.7.1 and 1.8.0 in ActionMailer...
mail.body = NKF.nkf(''-Sj -m0'', mail.quoted_body) # sigh.
Notifications.deliver(mail)
class Notifications < ActionMailer::Base...
2007 Apr 06
3
Mailer method missing
...ase
def request_admin_approval(person)
@subject = ''Watercooler - New User Notification''
@body["person"] = person
@recipients = "me"
@from = ''server-6AQQTOP5xU+Z+DCkdF2Uwti2O/JbrIOy@public.gmane.org''
@sent_on = Time.now
@headers = {}
end
--
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 r...
2008 Nov 30
4
ActionMailer weirdness: bad html '=3d' for all '='
...h() and mailto
function: those don''t fix it.
That is NOT the problem.
This is my method in order_mailer:
def price(order)
@subject = "Order Email
@recipients = order.email
@from = ''support-t1rxLZ7CIXjQT0dZR+AlfA@public.gmane.org''
@sent_on = Time.now
@body["order"] = order
part :content_type => "text/plain",
:body => render_message("price_text_html", :order => order)
end
I tried content type text/html first, text/plain also does not work.
I can''t use the u...
2009 Apr 23
8
how to avoid (Net::SMTPFatalError) "555 5.5.2 Syntax error
Hi all,
I have written code to send mails through action_mailer, where in I
called
MassNotifier.deliver_forward_review_link(current_user.profile.display_name,email,params[:notification][:message],params[:title],params[:designation],params[:company],params[:id],@invitation.invitation_code)
this method , and in mass_notifier.rb
I fave written
def
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
...me.now
@to = ''info@illinoisatplay.com''
@cc = ''nola@devasap.com''
@subject = ''Thank you for your request''
@recipients = ''''
@from = ''webserver@illinoisatplay.com''
@sent_on = sent_at
@headers = {}
@body[''name''] = formparms[:from_name]
end
end
---
The error I get is this:
ActionView::ActionViewError in Page#send_request
No rhtml, rxml, or delegate template found for sendrequest.rhtml
I REALLY DO have a a rhtml file at views/info...
2007 May 29
0
specs for ActionMailer
...nNotify < 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 = {}
end
-----------------
app/views/admin_notify/itemcreated.text.html.erb :
<p><b>AdminNotify#itemcreated</b></p>
<p>A new item was created</p>
<p>Class: <%= @item.class %><br />
Na...
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
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 Aug 07
9
problems with ActionMailer
...10) # this is here for testing purposes
end
@logger.info("MAILER: job done")
@progress = 100
end
this is the code in Masivo:
def mail_prueba(recipients)
@recipients = recipients
@from = "myself at mydomain.com"
@subject = "test email"
@sent_on = Time.now
@body = {}
end
If I do this, I get an exception:
No rhtml, rxml, rjs or delegate template found for mail_prueba -
(ActionView::ActionViewError)
I had to put a render :file at the end of the mail_prueba function,
and even that way the email is not sent... Any ideas on what could...
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/.
2008 Oct 25
7
Routing of result not clear in ActionMailer
...er::Base
def contact_email(email_params, sent_at = Time.now)
@recipients = "webmaster-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
@from = email_params[:name] + " <" + email_params[:address] +
">"
@subject = email_params[:subject]
@sent_on = sent_at
@body["email_body"] = email_params[:body]
@body["email_name"] = email_params[:name]
end
end
and I send from within a form
<%= form_tag :action=> "send_mail", :controller=> "emailer" %>
... some details deleted her...
2007 Dec 20
4
Ruby on Rails mailer
...me, :last_name => volunteer.last_name,
:id => volunteer.id }
@recipients = ''dsarosi-f/tn6ICKpJyYd0SBGKCxrdi2O/JbrIOy@public.gmane.org''
@from = ''CrossroadsPublicWebiste-f/tn6ICKpJyYd0SBGKCxrdi2O/JbrIOy@public.gmane.org''
@sent_on = sent_at
@headers = {}
@content_type = ''text/html''
end
end
Then I generated a view called volunteer_signup.html.erb
Dear xxx,
<%= @title %><%= @first_name %> <%= @last_name %> has signed up as a
new volunteer.
To see his/her information copy...
2006 Jul 11
0
ActiveMailer HTML + Plain Text + Attachment?
...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("answer_as_html", :message => message,
:signature => representative.signature)
end
part "text/plain" do |p|
p.body = rend...
2006 May 05
1
ActionMailer with attachments, body is blank
...t,_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''] = ''PFCSIntranet''
@headers[''MIME-Version''] = ''1.0''
@body = {:mycontent => _content, :firstname =>
_firstname, :recipient_id => _recipient_id, :mailer_id => _mailer_id...
2006 Feb 02
1
actionmailer - No rhtml, rxml, or delegate template
...nMailer::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
end
--
Posted via http://www.ruby-forum.com/.
2005 Apr 12
0
What does EOFError mean in ActionMailer?
...roller:
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:
================
EOFError in User#signup
End of file reached
app/controllers/user_controller.rb:24:in `signup''
script/server:48
================
Where line 24 is the deliver...
2007 Feb 10
0
email attachment is not sending properly
...itself. its not showing me an attachment.
please help me.
code in my model is:
class MyMailer < ActionMailer::Base
def sent(msg)
@subject = "Abc here...!"
@recipients = "xx-GVlOpdXsZis@public.gmane.org"
@from = "xx-GVlOpdXsZis@public.gmane.org"
@sent_on = Time.now
#content_type "text/html"
@body = {}
part :content_type => ''text/html'',
:body => msg
attachment :content_type => "image/jpeg",
:filename =>
''#{RAILS_ROOT}/public/images/product_images/14i...
2007 Jul 10
0
Attachement corrupt
...ervidor'',
5. :port => 25,
6. :domain => nil
7. }
Code Method to send e-mail:
1. def enviar(mensagem)
2. @subject = mensagem.assunto
3. @body = {:mensagem => mensagem}
4. @recipients = mensagem.para
5. @from = mensagem.de
6. @sent_on = Time.now
7. @headers = {}
8.
9. unless mensagem.arquivos.blank?
10. arquivo = mensagem.arquivos
11. attachment(:filename => File.basename(arquivo)) do |a|
12. file = File.open(arquivo, ''r+'') {|f| a.body =
f.read}
13. end
14. en...
2007 Nov 05
0
calling a method after deliver
...s 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To po...