Displaying 20 results from an estimated 400 matches similar to: "ActiveMailer HTML + Plain Text + Attachment?"
2006 Nov 01
2
How to: Individualized mass email with ActiveMailer - separate thread?
Hi,
We are building a rails application that''s sort of a CRM + room/course
booking. Among other things, it provides a centralized database of all
the people the company has been in contact with.
We want to provide the possibility of sending customized email messages
to groups of contacts, for example a newsletter to 500 people starting
with "Hi [:name:]". The naive approach
2006 Apr 03
1
Helpers for ActiveMailer templates
What helpers, if any, should be available to a view for ActionMailer? Even
ApplicationHelper methods don''t seem to be available.
This is on Rails 1.0.
David
2009 Apr 09
1
Mailing error in Rails 2.3.2
Hi,
My mails were working with the earlier version of rails ie. Rails
2.0.2. But recently when i upgraded my environment to 2.3.2 the mails
stopped working and gave
"Error: End of file reached".
But if i send mails independent of my rails app the mailing code works
fine.
My Environment:
Windows Xp
Ruby 1.8.7
actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource
2008 Jun 10
7
ActionMailer undefined method `parameters' - Rails 2.1
Hello Rubyists,
I''m currently trying to get email hooked up via ActionMailer, and while
I''ve gotten it to work in the past on Rails 1.2.x, I''m seeing an error
that I''m unfamiliar with.
Right now, I''m just trying to send email from my dev box via the SMTP
server at work.
My development.rb file:
#...snip
config.action_mailer.delivery_method = :smtp
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
I have a PageController that displays a form. The form is just
straight HTML, I only used the form helpers for the form tag as so:
--
<%= form_tag({:action => :send_request}, {:method=>:post,
:name=>''childsplay''})%>
--
In my page controller I have this:
--
def send_request
email = InfoMailer::deliver_sendrequest(params)
end
---
in my action mailer class I
2008 Sep 02
2
Actionmailer - Multipart and Outlook?
Hi,
I''m having issues with getting a consistent result with the emails I am
sending using Actionmailer.
Problem: Emails that I send with plain text, rich text, and attachments do
not display the same results across GMail, Yahoo, Outlook and Thunderbird.
Scenario:
I am sending an email with text/plain, text/html, and 2 attachments using
the code below, and I''ve specified the
2008 Jan 19
0
[CruiseControl] RubyOnRails build 8671 failed
The build failed.
CHANGES
-------
Revision 8671 committed by bitsweat on 2008-01-19 03:45:24
Support aggregations in finder conditions. Closes #10572.
M /trunk/activerecord/test/cases/finder_test.rb
M /trunk/activerecord/CHANGELOG
M /trunk/activerecord/lib/active_record/aggregations.rb
M /trunk/activerecord/lib/active_record/base.rb
TEST FAILURES AND ERRORS
-----------------------
2011 Feb 15
0
How to set content_transfer_encoding to something other than quoted-printable?
Hi all,
How do I set the content_transfer_encoding for mail with actionmailer
to something other than quoted-printable? It''s a setting with TMail
which action mailer relies on in rails 2.3.*. I am trying to set it to
utf8
I have tried:
- mail = TMail::Mail.new; mail.transfer_encoding = "utf8";
- setting the @header["Content-Transfer-Encoding"] in the
2007 May 29
0
specs for ActionMailer
Hi,
Email notifications are an important part of my app and I would like
to spec them. Here''s what I have going so far. It seems to work. I''d
appreciate comments/suggestions.
Rails script/generate mailer produces tests for the email contents
etc. I''ve started by manually converting the generated unit tests to
rspec, and then changing/adding examples as I
2006 Nov 04
1
ActionMailer Sending Two text/plain Parts
Hello ~
I have a working ActionMailer Action that takes the template to use as
an argument so I have one action that handles multiple emails. The
email sends just fine, and the correct email templates are used, but
ActionMailer is throwing in its own text/plain section in addition to
the one I specify. Does anyone have any ideas on why this might be
occuring, when I am specificially specifying
2008 Nov 30
4
ActionMailer weirdness: bad html '=3d' for all '='
I am getting html output in my email body with spurious characters
that cannot be rendered, so that my links are not handled properly.
What am I not getting here?
My email body contains:
-----------------clip-------------
<A href=mailto:"<%=h(''support-t1rxLZ7CIXjQT0dZR+AlfA@public.gmane.org'')%>?
Support">Support</A><br/>
with any
2006 May 05
1
ActionMailer with attachments, body is blank
I am trying to use the Rails Recipe for sending emails with
attachments. However, when I add an attachment, my body fails to
render. The resulting email has the attachment, but is blank otherwise.
In the book, it mentions that this is "broken" in rails 1.0 and to
upgrade to a newer version or edge rails. Well, I am running on 1.1.2
and it''s still happening. When I look
2008 Apr 09
1
Need help in passing parameters to a background job method
<backgroundrb-devel at rubyforge.org>I am trying to send email as a background
process from within a Rails app.
The goal is that when I go to http://mysite.com/foo/bar, the background job
kicks in and sends an email out. The relevant code snippets are below.
This errors out with a wrong number of arguments passed (2 for 1) message. I
think I am making a mess of passing parameters to the
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"
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 =
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
2009 Jul 30
0
Problem with implicit multipart emails using ActionMailer in Rails 2.3.3
With earlier 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
2006 May 17
8
Html Email Problem
Dear Rubyians,
I am facing problems to send Html Email scnce one month.
I changed the content type is text/html and charecter set "utf-8"
I worte the html code in the confirm.heml in the action mailer folder.
but mail is going with html code
Exapmle: <html border="2"> <tr><td></td></tr></html> code in the
confirm .html
In the
2006 Aug 10
4
Speeding up ActiveRecord creation?
My completely empty model (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
2005 Nov 17
7
render :partial in mail template
Hi,
Is it possible to render a partial template from within a mail template?
I get the following error
undefined method `controller_path'' for SupportMailer:Class
Extracted source (around line #8):
5:
6: <%= @url %>
7:
8: <%= render_partial ''sig_admin'' %>
Jeroen