Can I embed a twitter feed in my email?

2019-02-26 12:46发布

I'm about to send out an email campaign to my clients. The email will be sent in HTML format, and I wanted to embed a twitter feed in my email, similar to the twitter widgets you see embedded in blogs and websites everywhere. When I copy and paste the code generated through the twitter website, my email doesn't render anything :(

Any ideas if this is possible? Thanks! Here's the code twitter generated:

<script src="http://widgets.twimg.com/j/2/widget.js"></script> <script> new TWTR.Widget({ version: 2, type: 'faves', rpp: 5, interval: 6000, title: 'The best of Twitter according to', subject: 'My Tweets', width: 250, height: 300, theme: { shell: { background: '#8540c2', color: '#ffffff' }, tweets: { background: '#ffffff', color: '#444444', links: '#43c43f' } }, features: { scrollbar: true, loop: false, live: true, hashtags: true, timestamp: true, avatars: true, behavior: 'all' } }).render().setUser('maryamKE').start(); </script>

2条回答
兄弟一词,经得起流年.
2楼-- · 2019-02-26 13:23

There is no good way to accomplish this with the embeds provided directly from Twitter.

This was a need I also had and created a service that makes it extremely easy: https://www.widgmail.com/

查看更多
爷的心禁止访问
3楼-- · 2019-02-26 13:41

There is no standard for HTML email, and most email clients sensibly reject JavaScript. I recommend you link to a page on your web site.

查看更多
登录 后发表回答