similar to: adding attachment to ActionMailer

Displaying 20 results from an estimated 300 matches similar to: "adding attachment to ActionMailer"

2008 Mar 19
3
svn externals and git submodules
This is a request to split up the repository into at least two repositories rspec rspec_core (loaded as svn_external or git submodule) rspec_on_rails (loaded as svn_external or git submodule) We could load the plugins the same way as before ruby script/plugin install http://rspec.rubyforge.org/svn/trunk/rspec_core ruby script/plugin install
2006 Aug 14
6
Testing fails with fixtures not when invoked directly
I have three files organization.rb, company.rb, and department.rb. I want to ensure the department always has a company require File.dirname(__FILE__) + ''/../test_helper'' class OrganizationTest < Test::Unit::TestCase fixtures :organizations def setup @smo = organizations(:smo) end def test_department_company_defaults_to_parent org = Department.new(:name =>
2007 Jan 04
5
Help accessing http headers?
Hi, I''m using Mechanize, and I''ve developed a lot of code around it. I''d like to be able to check the Etag header during a get to see if the page has changed, as well as some other http header information. Can I do that without hacking Mechanize myself? Does anyone have any examples of how to do this? William
2006 May 11
1
Yahoo Container Library
Just a note that Yahoo came out with some more widgets Check out http://com1.devnet.scd.yahoo.com/yui/container/index.html. Maybe we can adopt some of their ideas. * I like the Module library and its subclasses * you can do unobtrusive html and use this when you instantiate the javascript objects dom _______________________________________________ Rails-spinoffs mailing list
2006 Aug 14
1
Rest, routes, path_prefix and default params
I am trying to use routes with default params to have routes ''/mycompany/departments'' and ''/companies/1/departments'' mean the same thing (both restful routes). When I set up the files as below, I get an error of ''Couldn''t find Company without an ID'' and my log file shows the following .. Processing DepartmentsController#index (for
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 Mar 10
3
WML sites
Hi all how to make a WML view for rails pages? I''ve tried to create like: <wml> <card> CONTENT </card> </wml> but my phone says unsupported content type... thanks -- Posted via http://www.ruby-forum.com/.
2006 Oct 07
1
Request to open up getConnection to embedded interface
Hello all, I would like to request that getConnection() and the struct Rconn declarations be added to the R embedded interface. Here's why. It's common in CGI scripts for web applications to direct stdin, stdout, and stderr map to reading from the browser, writing to the browser, and writing to a web log file respectively; very nice and neat. However, things get a little hairy once
2006 Sep 23
8
svn problems
I can consistently segfault the 0.10.4 gem, so I''m trying to get the subversion version working with hopes towards tracking the problem down. I have a fresh SVN checkout but: a) the version (in ferret.rb) claims to be 0.9.6; and b) Ferret::Index::FieldInfos and a couple other classes are missing at run time. It looks like this is because they''re not exported in the C
2006 May 09
1
Email -Content type is not set to html
Hi to ROR! I could not change the email content type to text/html What is the problem! order1= Order.find_get_details(params[:ses_value]) #render_text order1.size order=order1[0] email = OrderMailer.create_confirm(order) email.set_content_type("text/html") email = OrderMailer.deliver_confirm(order) email.set_content_type("text/html") Alwas it shows only plain format
2006 May 09
1
Emailcontewnt problem
I ma facing problems regarding the email-set-contentent I am writing the total code for order1= Order.find_get_details(params[:ses_value]) #render_text order1.size order=order1[0] email.set_content_type("text/html") email = OrderMailer.create_confirm(order) email.set_content_type("text/html") email = OrderMailer.deliver_confirm(order) #email =
2005 Nov 08
2
Scriptaculous insertion fails when XHTML Strict used in FireFox
Hi ! I'm getting an uncaught exception requiring the Scriptaculous libraries when everything says XHTML 1.0 Strict: class ApplicationController < ActionController::Base before_filter :set_content_type protected def set_content_type response.headers['Content-Type'] = 'application/xhtml+xml; charset=ISO-8859-1' end end <?xml version="1.0"
2006 Jan 25
2
how to define content charset?
I tried to define koi8-r charset in app/views/layouts/ like this: <head> <meta http-equiv="Content-Type" content="text/html; charset=koi8-r"> <title>Cpu: <%= controller.action_name %></title> <%= stylesheet_link_tag ''scaffold'' %> </head> But it doesn''t work. I suppose WEBrick already sent utf8 charset
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
2006 Jul 19
4
Rails crashes my fcgid/fastcgi/scgi on apache2/lighttpd :<
Or maybe I crash it and don''t know why. Here is the setup: I have an action that will crash my debian sarge development box using fcgid, fastcgi and scgi running with Apache2, as well as fastcgi running with lighttpd, every time. Here is the action from the controller: ------------------- def crashme @orders = Order.find(:all, :order => "`id` ASC", :offset
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
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 =>
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/.
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
2007 May 29
4
cache everything but...
I saw this older post when searching for information: On Feb 16, 5:10 pm, Ingo Weiss <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > withfragmentcachingonecancacheparts of a page. However, more often > than not what I would need is the exact opposite approach. I would like > to be able to use action cashing and have a mechanism for telling Rails > to