card.to_s}" />
开发者

How can I attach a generated vcard to a mail message?

开发者 https://www.devze.com 2023-04-10 03:17 出处:网络
Current code that isn\'t working att开发者_运维问答achments[\"contact.vcf\"] = {:content=> card.to_s}

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

精彩评论

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