card.to_s}" />
开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜