I need to embed a video (youtube and vimeo) into my email template.I have tried below mentioned 2 methods.But those are not working.Could you tell me why ? Thanks in advance.
Method 1 :
<video id="SomeID" name="media" src="https://www.youtube.com/embed/RFinNxS5KN4"></video>
Method 2 :
<iframe width="560" height="315" src="https://www.youtube.com/embed/RFinNxS5KN4" frameborder="0" allowfullscreen=allowfullscreen></iframe>
The simpler answer is: you cant embed them into emails.
While HTML enabled email clients allow valid HTML, they will filter out embed tags and HTML5 video links as a security concern. If they were enabled it would create a whole new world for spammers of referral links and such.
A good workaround would be to just hyperlink to the video instead (or to a page on your site that has them embedded) using a nicely crafted image. Make sure the email header specifies HTML and not text if you do this.