similar to: Problem with implicit multipart emails using ActionMailer in Rails 2.3.3

Displaying 20 results from an estimated 2000 matches similar to: "Problem with implicit multipart emails using ActionMailer in Rails 2.3.3"

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
2005 Mar 29
0
ActionMailer tmail/quoting.rb problem
Hi, Why did you allow this incompatibility? ;) * fixtures/notifications/signup: _foo @expected.body = read_fixture(''signup'') p @expected.body #=> " 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
2008 Oct 25
7
Routing of result not clear in ActionMailer
Dear all, I am trying to understand the following behaviour of the ActionMailer in Rails 2. I have an emailer_controller.rb class EmailerController < ApplicationController def send_mail Emailer::deliver_contact_email(params[:email]) end end I have a model emailer.rb class Emailer < ActionMailer::Base def contact_email(email_params, sent_at = Time.now) @recipients =
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 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
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"
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
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
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
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 =
2007 Nov 17
2
ActionMailer 501: sender address must contain a domain
Hi there guys! Im copying an email example from "Agile web development with rails", but i keep getting a "501: sender address must contain a domain" error. Heres my code in my enviroment.rb. Real values replaced with "something": [code] config.action_mailer.delivery_method = :smtp config.action_mailer.default_charset ="utf-8"
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 Dec 28
1
ActionMailer/SMTP: Net::SMTPSyntaxError when message body contains only a 'dot'
FYI: I don''t think this is a very well know. It seems that, on some operating systems, ActionMailer/SMTP crashes when it sends an email with only a ''.'' (aka a ''dot'' or a ''period''). Specifically, you get Net::SMTPSyntaxError (502 Error: command not implemented): Environment Details: $ uname -a Linux private1 2.6.15-26-server #1 SMP
2011 Jul 28
14
Actionmailer Help Needed
Hello everyone, Nice to meet you all, am new to the forum. I''m stuck with rake / actionmailer trying to display a set of found records. We have a simple actionmailer rake task that is supposed to send a daily email digest of tasks that are due for a specific user. So far, it''s working but the email only displays the first message. In my task model scope :tasksdue, lambda {
2011 Mar 04
1
How to modify the template path for ActionMailer used in a Ruby script ?
I am testing a ruby 1.9.2 script (it''ll be run in a cron task later...) in which I am trying to use ActionMailer All my files are in a single folder ''joinus_email - joinus_email joinus_email.rb notifier.rb - notifications joinus_email.html.erb joinus_email.text.erb running the script joinus_email.rb, (in which I defined the
2006 Mar 18
0
implicit template naming for multipart/alternative emails
Hello, I''ve been using edge rails for a while now and used the recipe from the new recipes book on using implicit file names for multipart/alternative messages. This seems to have recently broke. I''ve named by templates according to the book and the docs... # for example, if the following templates existed: # * signup_notification.text.plain.rhtml # *
2007 Nov 11
0
ActionMailer Difficulties
I''m using ActionMailer in test mode (so, in the config file I have config.action_mailer.delivery_method = :test ) I have my mailer set up as such... def confirm(message, sending_user, user) @subject = "You have a message from #{sending_user.login}" @body["message"] = message @body["user"] = user @body["sender"] = sending_user
2011 May 24
0
Rails 3.0.7 ActionMailer attachments
Hello, I''m converting my 2.3.8 application to 3.0.7 and have run into a snag with forwarding emails from the app with an attachment. The attachment appears in the email as 1 byte in size and thus corrupt. The actual file is fine and Rails seems to have access to the file. I''ve tried multiple permutations but here''s what I''m doing... I''m fetching email
2009 Mar 25
1
I18n + ActionMailer = conflict ?
Hi there, can anybody tell me why I get the error message: "undefined method ''t'' for #<Mailer:0xb6d501e0>" ... when I call the following Mailer? ================================= class Mailer < ActionMailer::Base def signup_notification(user) @recipients = "#{user.email}" @from =
2005 Mar 18
1
newbie question on ActionMailer
Hi, I normally try to really figure things out before asking a stupid question but I''m tight on time and the stack trace indicates a pretty low-level problem... something scary for a newb. I''m hoping that someone can just say "you forgot to polish the widget before turning the crank" or some other simple newbie-slap. I''m trying to get actionmailer to send