Displaying 20 results from an estimated 10000 matches similar to: "ActionMailer w/ attachment"
2005 Feb 11
1
adding attachment to ActionMailer
Is it possible to add an attachment and send it with ActionMailer?
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
2005 Dec 19
0
Re: Rails Digest, Vol 15, Issue 392
Peter Bohm wrote:
> which way do you send the email? Using the raw TMail object as described
> in the HowToSendMimeMultipartEmailsWithActionMailer? Can you post some code?
I''ll describe the problem in a bit more detail, and then will describe what I did to solve it.
The site I''m working on wanted to send an acknowledgment to people using our e-commerce site. The message
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>''
2006 Aug 07
9
problems with ActionMailer
Hi all,
I''m trying to create a worker to send a mail to all the users in my
db. Right now I''m doing the tests, this is the code in my worker
(Masivo is the ActionMailer subclass):
def do_work(args)
@progress = 0
@logger.info("MAILER: starting job")
records = Record.find(:all)
total = records.size
records.each_with_index do |record, idx|
2005 Mar 10
6
problems with ActionMailer
I''m having some problems with ActionMailer and I''m hoping that someone can
help. I''ve followed the tutorial on "How To Send Emails With Action
Mailer" <URL:
http://wiki.rubyonrails.com/rails/show/HowToSendEmailsWithActionMailer >,
I''ve generated a mailer -- "notifier.rb" -- and I''ve added the following
method to the
2005 Dec 20
1
Sending mail error
hey,
i get this message when i want to send a mail
5.3.3 AUTH not available
c:/ruby/lib/ruby/1.8/net/smtp.rb:680:in `check_response''
c:/ruby/lib/ruby/1.8/net/smtp.rb:582:in `auth_login''
c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in `critical''
c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in `auth_login''
c:/ruby/lib/ruby/1.8/net/smtp.rb:571:in `__send__''
2009 Mar 27
0
ActionMailer multipart: html, plain and attachment?
Has anyone gotten emails to work where you specify the HTML and the
plain text alternatives, but also include an attachment?
Reason I''m asking: I''m sending out event notices, styled as HTML but
with a plain text alternative. I also want to attach the .ics file.
For some reason, I can''t get this to work. If I explicitly put in
"multipart/mixed" (to support the
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 =>
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
2005 Dec 16
1
Composing HTML e-mail with a PDF attachment
Hi, everyone. I''ve been using Rails for a little while now, and am
really, really enjoying the experience.
I''m having the darndest time trying to send e-mail whose contents are in
HTML, and which includes a PDF attachment. Following various
instructions (in the Pragmatic book, as well as at
<http://wiki.rubyonrails.com/rails/pages/HowToSendEmailsWithActionMailer>),
2006 Jul 05
1
actionmailer
Hello,
1) I sent email but the attachment cann''t be read and i don''t know
why?!! I used this help:
http://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailer
2) let us can be obtained an acknowledgement of delivery with
Actionmailer or know if an email is valid?
thx.
--
Posted via http://www.ruby-forum.com/.
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"
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
2009 Oct 28
2
How to send a html email with attachment
Hi guys:
I wanna send a html format email with a attachment.
What I do is like:
model:
def weekly_report
address = WeeklyReportEmail.find_all_by_validate(true).collect(&:address).to_sentence(:last_word_connector
=> '','', :two_words_connector => '','')
@recipients = address
@from = "Chronos weekly report
2006 Aug 01
2
actionmailer cant find template in backgroundrb
Im trying to send mails from a backgroundrb worker and it seems like
ActionView cant find my template. same code works as a rake task.
here my worker:
class StatusMailWorker < BackgrounDRb::Rails
repeat 1.minutes # <-- hehe!
def do_work(args)
[...blah...]
NotificationMailer.create_daily_report(users, rep, items)
end
end
end
its throwing the following error:
No
2005 Mar 02
2
form action in mail (actionmailer)
Hi everyone. : )
I meet problem when use form tag in actionmailer. (content-type is text/html, surely)
I want to use form action in actionmailer''s view (.rhtml) for some reason.
1. I use start_form_tag helper method as normally, but how I can ?
I did <%= start_form_tag :action => "http://myhostname/mycontroller/myaction" %> or
<%= start_form_tag :action =>
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 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 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