<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Farhan Ali on Medium]]></title>
        <description><![CDATA[Stories by Farhan Ali on Medium]]></description>
        <link>https://medium.com/@Farhan.Ali?source=rss-40e2d1f17e87------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*edgNzffflHiR4y9Ym-svDw.png</url>
            <title>Stories by Farhan Ali on Medium</title>
            <link>https://medium.com/@Farhan.Ali?source=rss-40e2d1f17e87------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 08:34:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Farhan.Ali/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Top 5 AI Tools for Transforming Scripts into Engaging Videos]]></title>
            <link>https://medium.com/@Farhan.Ali/the-top-5-ai-tools-for-transforming-scripts-into-engaging-videos-bc79a0c5cec4?source=rss-40e2d1f17e87------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc79a0c5cec4</guid>
            <category><![CDATA[filmmaking]]></category>
            <category><![CDATA[film]]></category>
            <category><![CDATA[video-editing]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Farhan Ali]]></dc:creator>
            <pubDate>Mon, 09 Jan 2023 18:37:31 GMT</pubDate>
            <atom:updated>2023-01-09T18:37:31.209Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ugEhAroNuiU47JauhwyFrQ.jpeg" /></figure><p>The use of artificial intelligence (AI) in video production has become increasingly popular in recent years, as it offers a faster and more cost-effective alternative to traditional methods. There are a number of AI tools available that can help you turn scripts into videos, and in this blog post, we will be taking a look at the top 5 tools for this purpose.</p><ol><li><strong>Wibbitz:</strong> Wibbitz is a powerful AI tool that allows you to turn written content into professional-quality videos. The tool uses natural language processing (NLP) to understand the content of your script and generate a corresponding video. It has a wide range of customizable templates and features, including voiceovers, music, and graphics, which you can use to give your videos a unique look and feel.</li><li><strong>Articoolo:</strong> Articoolo is another AI tool that can help you turn your written content into videos. It uses advanced NLP algorithms to understand the meaning and context of your script, and then generates a corresponding video based on this information. The tool also allows you to customize the appearance of your videos with a range of templates and features, including text overlays, graphics, and transitions.</li><li><strong>Animaker:</strong> Animaker is an AI-powered animation tool that allows you to turn your written content into engaging and visually appealing videos. The tool has a wide range of templates and features, including characters, backgrounds, and music, which you can use to bring your scripts to life. It also offers a range of advanced animation options, including keyframing and lip sync, which can help you create professional-quality videos.</li><li><strong>Adobe Premiere Rush:</strong> Adobe Premiere Rush is a powerful video editing tool that includes AI-powered features to help you turn your written content into videos. The tool has a range of templates and features, including voiceovers, music, and graphics, which you can use to create professional-quality videos. It also includes AI-powered features such as Auto Reframe and Auto Ducking, which can help you save time and improve the quality of your videos.</li><li><strong>Renderforest:</strong> Renderforest is an AI-powered video production tool that allows you to turn your written content into videos. It has a wide range of templates and features, including voiceovers, music, and graphics, which you can use to create professional-quality videos. The tool also includes a range of advanced features, such as 3D animation and virtual reality, which can help you create truly immersive and engaging videos.</li></ol><p>In conclusion, AI tools are revolutionizing the way we produce videos, offering a faster and more cost-effective alternative to traditional methods. The top 5 AI tools for turning scripts into videos include Wibbitz, Articoolo, Animaker, Adobe Premiere Rush, and Renderforest. Each of these tools offers a range of templates and features that can help you create professional-quality videos, and with the help of AI, you can save time and improve the quality of your videos.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc79a0c5cec4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[14 Email Hacks Every Email Programmer Needs To Know]]></title>
            <link>https://medium.com/@Farhan.Ali/14-email-hacks-every-email-programmer-needs-to-know-2ae08273c352?source=rss-40e2d1f17e87------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ae08273c352</guid>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Farhan Ali]]></dc:creator>
            <pubDate>Thu, 06 Jul 2017 21:16:57 GMT</pubDate>
            <atom:updated>2017-07-06T21:19:25.879Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*1aCXrfne-YVxXXkFb0MSzQ.jpeg" /></figure><h4>Tips and tricks to ensure your marketing messages render properly from Outlook to Apple Mail.</h4><p>In Email Marketing, your email has to render well if you want your subscribers to open your email and view your messages.</p><p>Rendering is a problem in email clients. Every email client and device render code differently. Code that works well in one email client can create a issue in another client. Things became more challenging in emails when you tested your email on different email clients. Because every email clients come with rendering quirks and glitches. In this article, We’ll take a look at the challenges and workarounds for each of the mail email clients.</p><h3>Outlook</h3><p>Email developers shudder at the thought of Outlook. Because Outlook has numerous rendering challenges. Most of the corporates still use Outlook as their standard email client.</p><p>Let’s have a look at some of the challenges and hacks for Outlook:</p><ul><li><strong>Challenge: </strong>Outlook doesn’t support margins in <strong>&lt;p&gt;</strong> and <strong>&lt;a&gt;</strong></li><li><strong>Hack: </strong>If you want to provide margins, use the <strong>&lt;td&gt;</strong> tag; uppercase should be used outside the tag, and lowercase inline</li><li><strong>Challenge:</strong> Padding is only supported on certain HTML attributes (not including on <strong>&lt;div&gt;</strong> or <strong>&lt;p&gt;</strong> tags)</li><li><strong>Hack:</strong> Table-based layout is the safest bet to overcome this issue</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*R7eKcy7b8kiqp_yd5g4PCQ.gif" /></figure><ul><li><strong>Challenge: </strong>Outlook is the only email client that does not support GIFs</li><li><strong>Hack:</strong> As some clients will only see the first frame of your animation, this should include all the important information, run only for a few milliseconds, and make sense as a standalone image</li><li><strong>Challenge:</strong> Outlook does not support Google Fonts, and will implement Times New Roman as a fallback</li><li><strong>Hack: </strong>Embed the following code…</li></ul><pre>&lt;!--[if mso]&gt;<br>&lt;style type=”text/css”&gt;<br>.fallback-text {<br>font-family: Arial, sans-serif;<br>}<br>&lt;/style&gt;<br>&lt;![endif]--&gt;</pre><h3>Outlook.com</h3><p>A new version of Outlook.com was introduced in early 2016 but the legacy version is still not out of use.</p><p>Here are the challenges and hacks particular to that client:</p><ul><li><strong>Challenge: </strong>An unnecessary gap of 4–5px is added below images</li><li><strong>Hack:</strong> Set the display property as <strong>“img {display:block;}”</strong> to remove the padding</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JmTyB_BkIXI-1htHgpfrDg.jpeg" /></figure><ul><li><strong>Challenge:</strong> Does not support RGB borders</li><li><strong>Hack: </strong>Use HEX codes to set HTML background colour</li><li><strong>Challenge: </strong>Adding <strong>#</strong> in <strong>href</strong> links breaks the anchor tag and shifts the CSS to another place</li><li><strong>Hack: </strong>Use domain name rather than <strong>href #</strong></li></ul><h3>iPhone native app</h3><p>The native iPhone email app is the most used client, and it supports all the interactive elements you’d typically find in email: GIFs, menus, accordions, countdowns, sliders and so on. Moreover, it also allows the email marketer to use high-definition Retina images for an awesome user experience.</p><p>iOS10 has become all the more coveted because users can now adjust the number of lines of preview text in emails and even opt for list-unsubscribe. Nonetheless, despite these strong points, iPhone native app also has certain shortcomings. Let’s take a look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*xR8p-btTgMC3SENXeCM2xQ.jpeg" /></figure><ul><li><strong>Challenge:</strong> Tiny text is automatically resized</li><li><strong>Hack:</strong> The minimum font size for headers should be 22px, and for body text 14px</li><li><strong>Challenge: </strong>The release of new iPhone models can cause rendering problems</li><li><strong>Hack: </strong>Fluid layout ensures emails display properly across all devices</li><li><strong>Challenge:</strong> In iOS9, when <strong>inline-block</strong> level elements are next to each other in the code with a space between the ends of two elements, it leads to wrapping issue</li><li><strong>Hack: </strong>Simply remove the space</li><li><strong>Challenge:</strong> iOS10 does not support fixed positioning</li><li><strong>Hack: </strong>No current workaround…</li></ul><h3>Gmail</h3><p>Gmail is popular because it’s so convenient to use. However, that doesn’t mean it’s without its challenges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fAuyOQnjWVfLWN1F70RtOQ.png" /></figure><ul><li><strong>Challenge:</strong> If your HTML file exceeds 102kB, Gmail will clip it</li><li><strong>Hack:</strong> Avoid unnecessary style tags and attributes, and don’t copy the code from Microsoft word or other text editors as it is (this will add extra tags to the HTML file)</li><li><strong>Challenge: </strong>Gmail will remove CSS from the <strong>&lt;style&gt;</strong> block if it exceeds 8142 characters or includes errors or nested <strong>@declarations</strong></li><li><strong>Hack: </strong>Make sure embedded styles are short and free of typos</li><li><strong>Challenge:</strong> Floats, margins, paragraphs, and padding are not supported</li><li><strong>Hack: </strong>Use a table-based layout with <strong>&lt;td&gt;</strong> for padding and margins</li><li><strong>Challenge: </strong>Background images do not work for non-Gmail IDs configured in Gmail</li><li><strong>Hack:</strong> Apply the background colour as fallback</li><li><strong>Challenge: </strong>Attribute selector does not work</li><li><strong>Hack:</strong> Use <strong>.class</strong> selector instead</li></ul><h3>Apple Mail</h3><p>Apple Mail is perhaps the closest thing to a perfect email client we have. The main advantage of Apple Mail is that it is very forgiving when it comes to bad email coding. Moreover, just like iPhone Native App it supports interactivity in emails, thereby eliminating the need to view the email in browser.</p><p>You should keep in mind two things while coding emails for your Apple Mail subscribers:</p><ul><li>Avoid using Calibri fonts</li><li>Host your email and provide the links to the server, as internal links do not work in Apple Mail</li></ul><h3>Yahoo! Mail</h3><p>As new and better email clients have arrived, Yahoo! Mail is less frequently used these days. Some of its rendering challenges and the hacks are discussed below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*BWWp39N2VN9QGE0Uhm9JGA.jpeg" /></figure><ul><li><strong>Challenge: </strong>It does not support the <strong>center-align</strong> HTML attribute</li><li><strong>Hack:</strong> Use <strong>align=”center”</strong></li><li><strong>Challenge:</strong> <strong>min-device-width</strong> and <strong>max-device-width</strong> are not supported by media queries</li><li><strong>Hack:</strong> Use width attribute &amp;/or in style instead of min or max-width</li><li>Use the <strong>width</strong> attribute instead of <strong>min-</strong> or <strong>max-width</strong>, either separately or embedded in the <strong>&lt;style&gt;</strong> tag</li><li><strong>Challenge: </strong>Float tags do not work</li><li><strong>Hack:</strong> Add <strong>align=”top”</strong> to the image in question</li></ul><h3>Conclusion</h3><p>We have reached the end of the discussion on most typical rendering challenges for email clients. Email marketing, if done right, can pave new avenues for your marketing strategy. Keep these simple workarounds in mind and your subscribers will never see a broken email layout in your emails ever again.</p><p>Here are some of my other articles you may find helpful</p><ul><li><a href="https://medium.com/@Farhan.Ali/how-to-add-a-countdown-timer-to-your-email-campaign-a7fa566d8f06">Countdown timer for your email campaign</a></li><li><a href="https://medium.com/@Farhan.Ali/always-use-pre-header-for-your-email-campaign-acb6adcc37f7">Always use pre-header for your email campaign</a></li><li><a href="https://medium.com/@Farhan.Ali/reliable-way-to-add-background-image-in-newsletter-1d48291c9580">Reliable way to add background image in newsletter</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ae08273c352" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wow Visitors with High Performance Websites]]></title>
            <link>https://medium.com/@Farhan.Ali/wow-visitors-with-high-performance-websites-be4136b9b524?source=rss-40e2d1f17e87------2</link>
            <guid isPermaLink="false">https://medium.com/p/be4136b9b524</guid>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web]]></category>
            <dc:creator><![CDATA[Farhan Ali]]></dc:creator>
            <pubDate>Mon, 03 Jul 2017 20:53:03 GMT</pubDate>
            <atom:updated>2017-07-03T20:55:32.669Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bpPlmijHG7ZrG-fXZURg4g.jpeg" /></figure><h4>Simple tips on how developers can use prefetching/pre-rendering to instantly load pages</h4><h3>What Is Prefetching?</h3><p>When we talk about front-end performance we think things like minification, caching, or gzipping assets on the server so that the page loads faster and users can complete their goals as quickly as possible.</p><p>Prefetching is a optimization method where content downloaded in advance before accessed by the user. With this technique browsers caches website content in the background, making it instantly available for user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*sLvSXc1PLKC3IZL3kQBfig.png" /><figcaption>Image credits to maxcdn</figcaption></figure><h3>Types of Prefetching</h3><p><strong>Link prefetching</strong> is a method for web pages to declare hints allowing web browsers to pre-load various external resources to speed up loading and rendering of the page. The resources can include JavaScript, CSS, image, audio, video or web font files. Examples are below.</p><p><strong>DNS prefetching</strong> notifies the client that there are assets we’ll need later from a specific URL so the browser can resolve the DNS as quickly as possible. DNS prefetching is best used when there are multiple links that refer to external websites, such as the results in a search engine. Examples are below.</p><p><strong>Prerendering</strong> is the magical new practice of instructing the browser to download assets for and render an entire page in the background. The ability to prerender an entire page while your visitor’s browser is idling is super powerful. When they click that “next page” button the page will display almost instantly. Your server-rendered templates will pop up immediately like with a java script MVC based site. If your site is doing all its routing client-side, prerendering isn’t very practical but you can still get a speed bump by doing things like caching Angular templates in the background.</p><h3>Prefetching and Prerendering Examples</h3><h4>Link Prefetching</h4><pre>&lt;!-- full page --&gt;<br>&lt;link rel=&quot;prefetch&quot; href=&quot;https://example.com/css-enhancements-user-experience&quot; /&gt;<br><br>&lt;!-- just an image --&gt;<br>&lt;link rel=&quot;prefetch&quot; href=&quot;https://example.com/images/sprite.png&quot; /&gt;</pre><p>HTML5 prefetching is done via the LINK tag, specifying “prefetch” as the rel and the href being the path to the document. Mozilla also answers to a few differently named LINK rel attributes:</p><pre>&lt;link rel=&quot;prefetch alternate stylesheet&quot; title=&quot;Designed for Mozilla&quot; href=&quot;mozspecific.css&quot; /&gt;</pre><pre>&lt;link rel=&quot;next&quot; href=&quot;2.html&quot; /&gt;</pre><h4>DNS Preftching</h4><pre>&lt;link rel=&quot;prefetch-dns&quot; href=&quot;example.com&quot;&gt;</pre><p>You can either send the X-DNS-Prefetch-Control header server-side, or from individual documents, using the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv">http-equiv</a> attribute on the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta">&lt;meta&gt;</a> element, like this:</p><pre>&lt;meta http-equiv=&quot;x-dns-prefetch-control&quot; content=&quot;off&quot;&gt;</pre><pre>&lt;!-- You can reverse this setting by setting content to &quot;on&quot;. --&gt;<br>&lt;meta http-equiv=&quot;x-dns-prefetch-control&quot; content=&quot;on&quot;&gt;</pre><pre>&lt;link rel=&quot;dns-prefetch&quot; href=&quot;http://example.com/&quot;&gt;</pre><p>You can force the lookup of specific hostnames without providing specific anchors using that hostname by using the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel">rel</a> attribute on the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link">&lt;link&gt;</a> element with a <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types">link type</a> of dns-prefetch:</p><pre>&lt;link rel=&quot;dns-prefetch&quot; href=&quot;http://www.example.com/&quot;&gt;</pre><p>In this example, the domain name “www.example.com&quot; will be pre-resolved.</p><p>Similarly, the link element can be used to resolve hostnames without providing a complete URL, but only, by preceding the hostname with two slashes:</p><pre>&lt;link rel=&quot;dns-prefetch&quot; href=&quot;//www.example.com&quot;&gt;</pre><p>Forced prefetching of hostnames might be useful, for example, on the homepage of a site to force pre-resolution of domain names that are referenced frequently throughout the site even though they are not used on the home page itself. This will improve the overall performance of site even though the performance of the home page may not be affected.</p><h4>Prerendering</h4><pre>&lt;link rel=&quot;prerender&quot; href=&quot;http://example.com/sign-up.html&quot;&gt;</pre><h3>Prefetching and prerendering best practices:</h3><p><strong>When to use prefetching(dns):</strong></p><ul><li>When you’re making AJAX requests to a domain other than the one you’re on. This includes subdomains.</li><li>When you’re dynamically rendering content on a page from a different domain. Example cases include generated links/buttons and lazy loading images.</li></ul><p><strong>When not to use prefetching(dns):</strong></p><ul><li>When there’s a link on your page(Modern browsers should fetch that automatically for you)</li><li>In most cases really. Because of automatic prefetching it’s hard to find cases when you’d need it other than dynamically-generated subdomains or something similar.</li></ul><p><strong>When to use prerendering:</strong></p><ul><li>When you’re certain that a user is going to visit a page.</li><li>When that pages has lots of assets that take a while to load.</li><li>When there’s a “next page” that’s very likely to be visited such as in a sign-up flow or the first link in a series of search results.</li><li>When an increase in page load speed would dramatically increase conversions.</li></ul><p><strong>When not to use prerendering:</strong></p><ul><li>When a user is not likely to visit a page.</li><li>When the amount of network data is limited(you don’t want users to pay for pages they don’t even visit).</li></ul><h3>Conclusion</h3><p>DNS-prefetching, link prefetching and prerendering are powerful optimization techniques. If <strong>implemented responsibly</strong>, on the basis of the knowledge developers have of web content and users’ behavior, prefetching can considerably improve user experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be4136b9b524" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Always use pre-header for your email campaign]]></title>
            <link>https://medium.com/@Farhan.Ali/always-use-pre-header-for-your-email-campaign-acb6adcc37f7?source=rss-40e2d1f17e87------2</link>
            <guid isPermaLink="false">https://medium.com/p/acb6adcc37f7</guid>
            <category><![CDATA[newsletter]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[newsletter-marketing]]></category>
            <category><![CDATA[email]]></category>
            <dc:creator><![CDATA[Farhan Ali]]></dc:creator>
            <pubDate>Fri, 21 Oct 2016 17:28:42 GMT</pubDate>
            <atom:updated>2016-10-21T18:04:31.891Z</atom:updated>
            <content:encoded><![CDATA[<h4>Solution to email pre header</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*oFFrg76L4WzArKxTtxhYXg.jpeg" /></figure><p>Inbox is the <strong>first</strong> thing a subscriber sees, it’s often the <strong>last</strong> thing considered when creating an email. Every inbox shows the sender name and subject line for an email. Many clients also display some preview text. And optimizing preview text is one of the most effective ways to increase open rates - sometimes up to 45%.</p><h4>WHAT IS PREVIEW TEXT?</h4><p>Preview text is a snippet of copy pulled in from the body of your email and typically displayed underneath the from name and subject line in a subscriber’s inbox. It is alternatively referred to as snippet text or a preheader.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*9R2vbLooTa77d8nWE9y8ew.jpeg" /></figure><p>Preview text can capture your subscriber’s attention, encouraging them to open. Preview text can also influence behavior - getting subscribers to scroll and click specific articles mentioned in the text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*YNtxAWTmSghgzUaqAgharw.png" /></figure><p>While all inbox fields are fertile ground for optimization and A/B testing, optimizing preview text is frequently a quick win. The best part is that changing or testing preview text is easy - there’s no HTML or design required.</p><h4>ADDING PREVIEW TEXT TO YOUR EMAIL</h4><p>Preview text is pulled from the first few lines of text found within an email. Preview text can either be displayed or hidden in the body of your campaign.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*YNtxAWTmSghgzUaqAgharw.png" /></figure><p>It’s simple! All you need to do is add a little code after the &lt;body&gt; tag in your HTML.</p><p>Hiding preview text using HTML and CSS requires some hacks, and there are a few different strategies you can use. Our solution includes CSS that instructs the text <strong>not</strong> to display. Since the ‘display: none’ property doesn’t work everywhere (we’re looking at you, Gmail), we’ve also included some fall-backs - like specifying that the text should match the background color and only be one pixel high.</p><pre>&lt;div style=”display:none; font-size:1px; color:#{color}; line-height:1px; font-family:{font}; max-height:0px; max-width:0px; opacity:0; overflow:hidden; mso-hide:all;”&gt;<br> {preheader text}<br>&lt;/div&gt;</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdeb4c1da18c454a3d4babe06de9ae1e/href">https://medium.com/media/bdeb4c1da18c454a3d4babe06de9ae1e/href</a></iframe><h4>WHICH EMAIL APPS DISPLAY PREVIEW TEXT?</h4><p>Like everything in email, support for preview text varies. Even when preview text is supported, no two inboxes look the same - both placement and character count vary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*Y-7MflyCGvELXalIJM9aRQ.jpeg" /></figure><blockquote>* Varies depending on the subject line length.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acb6adcc37f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Countdown timer for your email campaign]]></title>
            <link>https://medium.com/@Farhan.Ali/how-to-add-a-countdown-timer-to-your-email-campaign-a7fa566d8f06?source=rss-40e2d1f17e87------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7fa566d8f06</guid>
            <category><![CDATA[email]]></category>
            <category><![CDATA[newsletter]]></category>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Farhan Ali]]></dc:creator>
            <pubDate>Thu, 13 Oct 2016 12:45:14 GMT</pubDate>
            <atom:updated>2018-04-06T14:12:57.885Z</atom:updated>
            <content:encoded><![CDATA[<h4>Step-by-step guid to create an email count down timer</h4><p>There’s nothing like a countdown timer to add a little urgency to an email, especially one promoting an event like an office party or when concert tickets go on sale. This works by taking a PNG and using a PHP script to create a looping GIF counting down to a time.</p><p>It takes a flat PNG and super imposes the countdown based on your variables in the PHP script onto it.</p><p>Here is the client support:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*kKvsOLQNgLA-hO-PB5_7QA.png" /></figure><p>You will need:</p><ul><li>Web hosting with PHP support</li><li>The font you want to use’s font file (eg; Myriad.ttf)</li></ul><p>#Setting up the script First of all, download all the files from <a href="https://github.com/Omgitsonlyalex/EmailCountdown"><em>this link</em></a>. Add them all to a folder such as Countdown.</p><p>Next, you’ll want an image to impose the countdown onto. For this tutorial we’ll use the one that comes with the code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FKYo_Clh6fQp1XK-2F_viQ.png" /></figure><p>Open up gif.php in your editor of choice. The first thing you’ll want to change is this:</p><pre>date_default_timezone_set(&#39;Europe/London&#39;);</pre><p>If your timezone is diferent of course.</p><p>Next up is:</p><pre>$image = imagecreatefrompng(&#39;images/countdown.png&#39;);</pre><p>When you add more images you’ll need to change this. It appears in the script <strong>3 times</strong></p><p>Text control variables. First up, the font size:</p><pre>&#39;size&#39;=&gt;23, // Font size, in pts usually.</pre><p>Then the angle of the text:</p><pre>&#39;angle&#39;=&gt;0, // Angle of the text</pre><p>As you can see by the comments, it’s the distance from the left hand side. It can be fiddly to get this where you want it.</p><p>Then the y-offset:</p><pre>&#39;y-offset&#39;=&gt;30, // The vertical alignment, trial and error between 20 and 60.</pre><p>Same as above, but the verticle alignment.</p><p>Now to define the font:</p><pre>&#39;file&#39;=&gt;&#39;./GillSans.ttc&#39;, // Font path</pre><p>This is why you need the font file.</p><p>And finally to colour the text:</p><pre>&#39;color&#39;=&gt;imagecolorallocate($image, 55, 160, 130), // RGB Colour of the text</pre><h3>Adding to an email</h3><p>Ok, now we’ve got all our variables set up it’s time to generate the image. This is why you needed the web hosting.</p><p>Open a browser and go to:</p><pre>YOURHOST/countdown/gif.php?time=YOUR-TIME-TO-COUNTDOWN-TO</pre><p><a href="http://development.xm0001.com/nl-countdown-timer/gif.php?time=2016-10-14+12:55:60">http://development.xm0001.com/nl-countdown-timer/gif.php?time=2016-10-14+12:55:60</a> Hopefully you can see how it’s working there.</p><p>So you take that link and whack it in an image tag to add it to an email, like this:</p><pre>&lt;img src=&quot;<a href="http://development.xm0001.com/nl-countdown-timer/gif.php?time=2016-10-14+12:55:60">http://development.xm0001.com/nl-countdown-timer/gif.php?time=2016-10-14+12:55:60</a>&quot; alt=&quot;Countdown&quot; border=&quot;0&quot; style=&quot;display:block;&quot;&gt;</pre><p>The GIF-encoder tricks the email client into thinking the php link is actually a GIF.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7fa566d8f06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reliable way to add background image in newsletter.]]></title>
            <link>https://medium.com/@Farhan.Ali/reliable-way-to-add-background-image-in-newsletter-1d48291c9580?source=rss-40e2d1f17e87------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d48291c9580</guid>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[newsletter]]></category>
            <dc:creator><![CDATA[Farhan Ali]]></dc:creator>
            <pubDate>Fri, 22 Apr 2016 20:33:47 GMT</pubDate>
            <atom:updated>2016-04-22T20:33:47.520Z</atom:updated>
            <content:encoded><![CDATA[<p>Support of background images in newsletter have been limited and inconsistent. For this issue, we avoided the use of background images in our newsletters.</p><p>Now, there’s a reliable way to get a repeating background image to surround your content in major email clients, e.g. Gmail, Yahoo, AOL and Outlook. In this post, i will show you techniques which can be used to add consistent background images.</p><h4>Applying a background image to the body of an HTML email</h4><p>This approach comes in two parts. First, we’re going to use a table of width=”100%” to ensure that background images display in clients like Gmail. Then we’re going to apply Microsoft VML to force images to display in Outlook ’07 &amp; ’10.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1057caf600a0792961860cc4ff89076a/href">https://medium.com/media/1057caf600a0792961860cc4ff89076a/href</a></iframe><p>This will show body background image in all email clients.</p><h4>Applying a background image to a table cell</h4><p>If you want to show background images inside the newsletter (banner and hero images), we need to apply styles to a table cell with corresponding VML.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8fa96d3c6cd0854524d2e5a07040cdd/href">https://medium.com/media/e8fa96d3c6cd0854524d2e5a07040cdd/href</a></iframe><h4>Frame Background VS Tile Background</h4><p>If you want to show a full frame background image, the height and width in the VML have to be the same as the height and width of the table cell. Otherwise, it will show as tile background.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d48291c9580" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>