How can I attach a generated vcard to a mail message?
Current code that isn't working
att开发者_运维问答achments["contact.vcf"] = {:content=> card.to_s} mail(:to =>card.email, :subject =>"Test")Example Code I've been using:
http://firstruby.wordpress.com/2007/12/10/vcard-exporting-through-rubyonrails/Figured it out. Needed to encode the attachment.
精彩评论