i got a problem with rails achtionmailer 3.0.7.

when i send a email with attachment, sometimes the attachment is not
displayed as such and is not be found in the email, but the size of the
email is still big (as with attachment). it's probably hidden base64
encoded in the sourcecode.

now the hard part. i only got this information from customers and cannot
stage this error in my development environment.

my code is quite easy:

def offer(docs = [])
  # attach files
  docs.compact.each do |document|
    attachments[document.filename] = File.open(document.url, 'rb')
{|file| file.read} ## I need to read 'rb' because i am on a win-server
  end

  mail(:to => "<email>", :subject => "<subject>")
end



any suggestions? how can i assure, that the attachment will be
displayed?
the attachments are always pdfs (if thats somehow important).

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to