similar to: ActionMailer attachment troubels

Displaying 20 results from an estimated 4000 matches similar to: "ActionMailer attachment troubels"

2006 Jul 15
1
ActionMailer and PDF Attachment and corrupt file?
Community, I''m struggling with an issue and I''m sure it is trivial but I cannot find the solution. I''m trying to attach a PDF file to an email. For simplicity, I have explicitely named a given file but when I get the email, the attachment is only a partial of the document which causes it to be corrupt. Sample below: @recipients =
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 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 May 05
5
Attach a PDF File to an Email
Hello ~ I have an email that I need to attach a PDF to. The email is being sent, and a file is attached but it is not the original file. I am following the example: attachment :content_type => "image/jpeg", :body => File.read("an-image.jpg") changing it to: attachment :content_type => "application/pdf", :body => File.read("pdf/my.pdf")
2013 Feb 22
1
patch to fix binary attachment indexing
FTS indexing of binary attachments is broken in dovecot-2.1.15: the binary data which fts_build_mail_real() sends to fts_build_body_block() (which sends it to fts_backend_update_build_more()) is garbled. This patch ungarbles it but I?m not positive it?s the best fix. --- dovecot-2.1.15/src/plugins/fts/fts-build-mail.c 2012-11-27 02:07:27.000000000 -0600 +++
2015 Jul 29
2
charset-iconv.c panic
Hi, I have a mailbox where indexing fails with the following error: # /opt/dovecot2/bin/doveadm -c /tmp/dovecot.conf -o mail_location=/tmp/skesselring index '*' doveadm(root): Panic: file charset-iconv.c: line 132 (charset_to_utf8): assertion failed: (*src_size - pos <= CHARSET_MAX_PENDING_BUF_SIZE) doveadm(root): Error: Raw backtrace:
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
2005 Feb 11
1
adding attachment to ActionMailer
Is it possible to add an attachment and send it with ActionMailer?
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
2007 Dec 17
14
Change in isolation behaviour 1.08 - 1.10 ?
Hi, I just moved from 1.08 to 1.10 and now have one example failing, which, under 1.08, passed. Is the due to a change in behaviour? Here''s my spec (removed some passing examples) require File.dirname(__FILE__) + ''/../spec_helper'' describe "A user" do before(:each) do @user = User.new @valid_user = User.new( :email =>
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
2006 Mar 08
4
Sending Documents via ActionMailer
Hi, 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
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 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 May 03
2
backgroundrb / actionmailer / sendmail
Hello, I''m trying to send emails from a backgroundrb worker and the email doesn''t send. I get no log messages in the sendmail log or the system log, nothing in the backgroundrb logs at all, nothing in the production log. Below is my code for each component worker: class QuizReviewerWorker < BackgrounDRb::MetaWorker set_worker_name :quiz_review_sender def create(args =
2006 Jun 16
0
Strange problem with ActionMailer
I have the following code to send out email notifications. The view can vary for each call to signup_confirmation, so I''m setting template_root on each call in order to do that. It works for a while, but after a few days it will start using a value of signup_path that was used in a previous call. In other words, Notifier.template_root = signup path does not actually set
2006 Jun 21
0
Possible bug in actionmailer
I have the following code to send out email notifications. The view can vary for each call to signup_confirmation, so I''m setting template_root on each call in order to do that. It works for a while, but after a few days it will start using a value of signup_path that was used in a previous call. In other words, Notifier.template_root = signup path does not actually set
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
2019 Dec 15
1
Bug: indexer-worker segfaults with fts_xapian 1.2.5
Core was generated by `dovecot/indexer-worker'. Program terminated with signal 11, Segmentation fault. #0 0x00007f30f7ad056d in __exchange_and_add (__val=-1, __mem=0xfffffffffffffff8) at /usr/src/debug/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/ext/atomicity.h:49 49 { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } (gdb) bt full #0
2009 Nov 30
0
Problem with ActionMailer in controller specs - works in model specs
I am having a problem with my controller tests that include ActionMailer. The tests work for the model test, e.g. I have a UserNotifier model that sends account activation e-mails and the spec''s work fine. When I run the UsersController spec''s that test some of the same functionality (e.g. uses the UserNotifier model), I get: ArgumentError in ... wrong number of arguments (0