Hi,
I wanted to send an attachment in mail.
for testing , I have send png image attachement in mail. Mail delivery is
completely working but the attachment in that mail show file name as
"nonname"
what should i do??
My code is:
class SendMail < ActionMailer::Base
default :from => "XXXX-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
def welcome
attachments["adfd.txt"] =
File.read("#{Rails.root}/public/images/f.txt")
mail(:to => "XXX-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org",
:subject => "welcome mail").deliver
end
end
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.