That’s a 202% lift over usual email campaigns. High open rates: Welcome emails have an average open rate of 30.45%.This alone should make it a fundamental part of your email marketing strategy. Customers expect them: 74% of email subscribers expect to receive a welcome email just after subscribing to a new newsletter.We will fill it with whatever content we need to send at the time.Welcome emails stand out for multiple reasons: The text between the header and footer is just a placeholder so that you can see what the finished product will look like. The footer part of the email is everything from the paragraph tag before “Warm regards” right until the end (i.e. Copy that bit and paste it into a new file in your my_email_plugin folder, and name it email_header.php. The header part of the email is everything from the top right up to and including the h1 heading on row 23 (i.e. The safest styling method is inline, so the fewer frills you can get away with, the better. Remember that this is an email, so the HTML won’t be beautiful. If you would like to stop receiving emails from us, feel free to You have received this email because you are a member of. Aliquam lorem ante,ĭapibus in, viverra quis, feugiat a, tellus. Aenean leo ligula, porttitor eu,Ĭonsequat vitae, eleifend ac, enim. Donec pede justo, fringilla vel, aliquet nec, Donec quam felis, ultricies nec, pellentesqueĮu, pretium quis, sem. Aenean massaĮt magnis dis parturient montes, nascetur ridiculus Lorem ipsum dolor sit amet, consectetuer adipiscingĮlit. If you want a quick preview of what it looks like, just click the link. Or you can download it as an HTML file (right-click, and then select “Save as”). Without further ado, here’s the code for the email template that I made. This way, you can change the design of your emails very easily just by modifying the templates. We will send our emails in WordPress by pulling in the header, putting the email text under that and then pulling in the footer. Our goal is to come up with a template to which we can add a header and footer section. I am not a big fan of using images in emails, so we will be building an HTML template using only CSS. I will just share the method that I use, which does not mean that doing it differently is not allowed. Creating An Email TemplateĬreating good email templates is worth an article on its own. Just read on, because we’ll be adding some functionality after the next section. If you’re new to this, then congratulations! You have just created your first working WordPress plugin! It doesn’t really do anything yet, but don’t let that bother you. Once that’s done, save the file, go to the WordPress admin section, and activate your new plugin. I created this plugin to rule the world via awesome WordPress email goodness Basically, you are telling WordPress to run your custom function whenever the function for publishing posts runs. With hooks, you write the function for sending the email, and then hook it into the function that publishes the post. Without hooks, if you wanted to send a publication notice to the author of a post, you would have to find the function that published the post and add your own code directly to it. Hooks enable you to add your own functions to WordPress without modifying core files. You can read all about how hooks work in WordPress, but here is the nutshell version, and we will be working with them in this article so much that you’ll learn it by the end. WordPress itself uses this function, and you can, too, by using WordPress hooks. It is able to handle almost anything you throw at it, from custom HTML emails to modifications to the “From” field. WordPress has a handy function built in called wp_mail(), which handles the nitty-gritty of email sending. Let’s get started! How WordPress Sends Emails Then we will proceed to hook our own emails into different events in order to send some custom emails. We will then modify the actual text of some of the built-in emails. We will then modify the mailer function so that it uses our new custom template. First, we will create a nice email template to use. In order to create our own system, we will be doing four things. WordPress users are in luck, since WordPress already has easy-to-use and extendable functions to give you a lot of power and flexibility in handling your website’s emails. If executed well, one of the most effective tools can be a simple email. Whatever type of website you operate, its success will probably hinge on your interaction with your audience.
0 Comments
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |