similar to: ActionMailer multipart: html, plain and attachment?

Displaying 20 results from an estimated 10000 matches similar to: "ActionMailer multipart: html, plain and attachment?"

2009 Mar 26
1
Turning off the layout in ActionMailer?
So I''m happy to see that ActionMailer supports layouts now (it may have for a while, but I just now realized it). But I don''t see a way to turn them off selectively or by multipart type. For example, if I have a layout that''s really simple in "layouts/ email.html.erb": <div style="border:1px solid gray"> <%= yield %> </div> I
2009 Mar 06
5
ActionMailer Layout on HTML version not Plain Text
I''m sending plain text and html emails by having multiple files for each email I send. For example, for my registration email I have a registration.text.plain.erb file and a registration.text.html.erb file. I want to use a layout for the html version of my emails. In my mailer I put: class AccountsMailer < ActionMailer::Base layout ''email'' ... end
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 Feb 06
6
ActionMailer - ROR Recipes - Multipart/alternative
I am using the SaltedHashLoginGenerator. and would like to send the e-mail in multipart/alternative format. By default my application is using forgot_password_en.rhtml template. I read in the ROR Recipes book "ActionMailer sees these templates, recognizes the pattern in their file names, and automatically sets the MIME type of the message to multipart/alternative and adds
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
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
2005 Feb 11
1
adding attachment to ActionMailer
Is it possible to add an attachment and send it with ActionMailer?
2006 Mar 01
0
Possible bug in ActionMailer (with patch)
I wanted to write the following code, with emphasis on adding my own headers to the second part with the :headers parameter. class ArticleMailer < ActionMailer::Base def test_message subject ''This is a test'' recipients ''elan@bluemandrill.com'' from ''Exemplary Products <info@example.com>''
2005 May 03
0
ActionMailer w/ attachment
I am having trouble sending email w/ attachments as described in the following how-to article: http://wiki.rubyonrails.com/rails/show/HowToSendEmailsWithActionMailer I can send basic emails successfully but the discussion regarding attachments is giving me trouble. mail.set_content_type(''multipart'', blah blah) mail.parts << my_attachment Questions: 1) Am I setting 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 Jul 11
0
ActiveMailer HTML + Plain Text + Attachment?
How do you do this? Tried all the examples on the wiki, and unfortunately the trac is not accessible right now to check the trouble tickets. No matter what I do the mime structure seems to be incorrect. It seems that adding an attachment to a html+plaintext message is not possible using the standard methods. I have seen some old posting on the mailing list about overriding the deliver method
2006 Mar 30
4
ActionMailer e-mails getting tagged as junk in Outlook 2003
Whenever an email is sent via ActionMailer, and the recipient is using Outlook 2003 (with SP2 installed), the e-mail is getting put in the junk e-mail folder. Since Outlook doesn''t give a reason it was tagged as junk, it''s hard to determine what to change. I''ve compared the message headers of the "junk" mail and a valid email sent through Outlook, and the
2009 Oct 31
3
1.9 Compat and merging mail gem into ActionMailer
Hi all of both RoR Core and TMail. You may know me better as the maintainer of TMail. However, TMail has been a bit difficult to get working with Ruby 1.9, so in the light of that, I sat down over the past few months and wrote myself an all encompasing mail gem. Mail passes all of its hundreds of specs equally well in Ruby 1.8.6, 1.8.7 and 1.9.1. Mail reads every email in the TMail test suite
2006 May 25
4
Does TMail support Nested Multipart Messages? (Repost)
Hi, does anybody know if TMail supports nested multipart messages? I read a changelog that indicates so (http://dev.rubyonrails.org/svn/rails/trunk/actionmailer/CHANGELOG), but I haven''t been able to get it working so far. Maybe I am doing something wrong here? I attached the sample mail. Here is the code to parse it: require File.dirname(__FILE__) +
2006 Aug 10
1
ActionMailer attachment troubels
Hi! As per the API Docs, I''ve put this in my Actionmailer class attachment :content_type => "application/csv", :body => File.read(filename), :content_disposition => ''test.csv'' The email arrives okay and all but the filename is ignored and the newlines in my CSV file are gone (replaced by something else). I must admit I''m receiving
2019 Jun 13
0
Sieve to strip html from multipart messages
On 2019-06-10 20:39, @lbutlr via dovecot wrote: > Is is possible (I?m sure it is, so how) to strip multipart messages > that are HTML and text of the HTML portion and leave the bare text > message without also stripping other parts (like images or attached > files). > > Or also to take messages that are only HTML and strip the HTML and > replace it with a plain text version?
2006 Mar 09
0
Sending files other than html via Actionmailer
I''ve been trying to set up to send already generated PDF''s via the ActionMailer class however it dosn''t seem to send the full file. So when I try to load the file after being sent it via email it dosn''t because it is corrupt. When I choose to send HTML instead it sends fine but it dosn''t work with Word Documents either Do I need to do anything special
2005 Nov 07
0
Using Layouts with ActionMailer when sending html formatted emails
Hello all, I''ve been spinning my wheels on a problem here, hope someone can help me out. I''m pretty new to Ruby & Rails. I''ve added some email capabilities to Typo. Its all finally working for the most part, however I don''t know how to get the layout specified. I am calling the Mailer class method to send the email from within the articles controller (for
2019 Jun 10
2
Sieve to strip html from multipart messages
Is is possible (I?m sure it is, so how) to strip multipart messages that are HTML and text of the HTML portion and leave the bare text message without also stripping other parts (like images or attached files). Or also to take messages that are only HTML and strip the HTML and replace it with a plain text version? I used to do this a long time ago with procmail and lynx, but it was never
2011 Feb 05
1
ActionMailer::Base.default_url_options
Hi, I want so set a default url for ActionMailer. I know, ActionMailer::Base.default_url_options is deprecated, so I use config.action_mailer.default_url_options = { :host => "localhost" } in my environments (test.rb, production.rb, ...). The problem is, I get a deprecation error and rails won''t start. I have no solution... Any hints for me? Testing started at