I have to send some html to the e-mail body, but Gmail does not explain the iframe tag with YouTube video. What is the reason for security breaches or other reasons?
Here's my code:
it-> load-> Library ('email'); $ Config ['mailtype'] = 'html'; $ Config ['wordwrap'] = true; $ This- & gt; Email-> Start ($ config); $ This- & gt; Email-> ('& Lt; email & gt;', 'elga'); $ This- & gt; Email-> ('' Email & gt; ''); $ This- & gt; Email-> Subject ('Email Test'); $ This- & gt; Email-> Message ('& lt; iframe title = "youtube video player" width = "480" height = "390" src = "& lt; url>" frameborder = "0" acceptable lens & gt; & lt; / iframe & Gt; '); $ This- & gt; Email-> Send ();
This is because of security, this is the reason why you are not javascript or nothing Can put in email other than images - it can give email a lot of "power" (you can put stuff there, it will not be displayed). Unfortunately it does not support any trusted flash. In fact, most email readers will not parse simple tags or CSS due to the lack of support, I actually only get back to the tables, that the email corresponds to each other in different email clients Looks.
Your best / only choice is to scare the video which I am afraid of. As mentioned above, Gmail will parse Youtube link and will actually embed it for those who have this enabled.
Comments
Post a Comment