The Nodemailer module makes it easy to send emails from your computer.
The Nodemailer module can be downloaded and installed using npm:
C:\Users\Your Name>npm install nodemailer
After you have downloaded the Nodemailer module, you can include the module in any application:
var nodemailer = require(‘nodemailer’);
Send an Email
Now you are ready to send emails from your server.
Use the username and password from your selected email provider to
send an email. This tutorial will show you how to use your Gmail account
to send an email:
Example
var nodemailer = require(‘nodemailer’); var transporter = nodemailer.createTransport({
service: ‘gmail’,
auth: {
user: ‘youremail@gmail.com‘,
pass: ‘yourpassword‘
}
}); var mailOptions = {
from: ‘youremail@gmail.com‘,
to: ‘myfriend@yahoo.com‘,
subject: ‘Sending Email using Node.js’,
text: ‘That was easy!’
};
transporter.sendMail(mailOptions, function(error, info){ if (error) {
console.log(error);
} else { console.log(‘Email sent: ‘ + info.response);
}
});
And that’s it! Now your server is able to send emails.
Multiple Receivers
To send an email to more than one receiver, add them to the “to” property of the mailOptions object, separated by commas:
Example
Send email to more than one address:
var mailOptions = {
from: ‘youremail@gmail.com’, to: ‘myfriend@yahoo.com, myotherfriend@yahoo.com‘, subject: ‘Sending Email using Node.js’,
text: ‘That was easy!’
}
Send HTML
To send HTML formatted text in your email, use the “html” property instead of the “text” property:
var mailOptions = {
from: ‘youremail@gmail.com’,
to: ‘myfriend@yahoo.com‘,
subject: ‘Sending Email using Node.js’, html: ‘<h1>Welcome</h1><p>That was easy!</p>’ } http://www.codingvilla.in/send-an-email-via-node-js
What’s New in WordPress 5.4 (Features and Screenshots)
WordPress 5.4 was released earlier today, and it is the first major release of 2020.
This new release is packed with a lot features, many of them are focused around the WordPress block editor. This release will massively improve the way you create content on your websites.
In this article, we’ll share what’s new in WordPress 5.4, and which features you should try after updating your websites.
WordPress 5.4 is a major release, and unless you are on a managed WordPress hosting service, you’ll have to manually initiate the update. Important: Don’t forget to create a complete WordPress backup before starting the update.
New and Improved Block Editor in WordPress 5.4
WordPress 5.4 is focused on improving the content editor. This includes new features, enhancements, and new blocks.
Let’s start with the enhancements first.
Fullscreen Editor will be Default in WordPress 5.4
WordPress 5.4 displays the block editor in the fullscreen mode by default.
This change will be noticeable on new WordPress installations, or if
you are accessing the WordPress admin area from a new device, browser,
or in the incognito mode.
If you are upgrading from WordPress 5.3 using the same browser and
device that you regularly use, then your editor will open with the last
mode you had enabled.
You can exit the fullscreen mode by clicking on the Editor settings and unchecking the ‘Fullscreen mode’ option. Update: If you want to permanently disable the full screen mode, then see our tutorial on how to disable full screen editor in WordPress.
New Blocks in WordPress 5.4
WordPress 5.4 brings two new blocks for you to use while writing content. 1. The Social Icons Block
As the name suggests, the Social Icons block allows you to add social media icons in your posts and pages.
After that, you can click on the add button and select a social
network that you would like to add. You can then click on the social
network icon and provide the link to your profile.
Social Icons block only allows you to add social media icons with
links to your profiles. It does not add social sharing buttons. For
that, you’ll still need a social media plugin with sharing features. 2. The Buttons Block
WordPress 5.4 introduces the Buttons block which will replace the
Button block. As you can guess from the name of the new block, it allows
you to add multiple buttons side by side.
You can select the background or gradient colors for each button and choose from two different styles.
Improved Blocks You Should Try in WordPress 5.4
Several blocks in WordPress 5.4 are improved with new enhancements.
Here are the top changes that will make a big difference in your writing
experience.
More Color Options for Blocks
WordPress 5.4 offers new color options for multiple blocks. This
allows you to create more engaging layouts for your posts and pages.
Previously users were only able to change the color of all text in a
paragraph. With WordPress 5.4, you can now change the color of any text
inside a paragraph block.
You can also choose text and background colors with gradients for
cover block, and you can even choose background and text colors for all
the blocks inside a group block.
If you regularly use the Columns block, then you can also use colors for separating columns from regular paragraphs.
Block Selection Tool
A new button in the toolbar now allows you to easily select blocks.
This is a really useful tool particularly when you have nested blocks
inside a group block.
Simply click on the select tool and then take your mouse to the block you want to select.
Drag and Drop to Add Featured Image
Previously, you needed to manually select to upload and set the
featured image. This didn’t match the drag and drop ability of the
content editor.
Now with WordPress 5.4, you can simply drag and drop an image to the featured image section.
Better Mobile Toolbar for Block Editor
Previously, if you had to edit a blog post using a mobile device,
then you may have noticed how the block settings toolbar moved around.
This made it quite difficult to use the editor on mobile devices. WordPress 5.4 has fixed this with a fixed toolbar on the top.
Select Image Sizes in the Gallery Block
Previously you were not able to select image sizes for images in the image gallery block. Now, you can select image size directly in the gallery block settings.
Improved Latest Posts Block
Previously, the Latest Posts block didn’t include the featured
images. You can also choose the size and alignment for the featured
image. This makes the Latest Posts block a lot more engaging and useful.
You Can Now Embed TikTok Videos in WordPress
WordPress 5.4 includes oEmbed support for TikTok videos. Basically,
you can now add TikTok videos to your WordPress posts and pages just
like you would embed YouTube videos.
Simply paste the video URL and WordPress will automatically embed it.
Updated Privacy Tools in WordPress 5.4
WordPress 5.4 brings improvements to the built-in privacy tools.
Personal data exports now include session tokens, community events
location, and custom user meta.
Personal data export now comes in two files in HTML and JSON. The
HTML file includes a table of contents at the top for easier navigation.
Developer Changes in WordPress 5.4
WordPress 5.4 has several improvements for developers. These enhancements affect theme and plugin developers mostly.
New hooks in WordPress 5.4 allow developers to add custom fields to navigation menu items. (Details)
Developers can now add keyboard shortcuts to the block editor. (Details)
WordPress 5.4 changes the HTML output for the Calendar widget. It
moves the navigation links to a <nav> HTML element right after the
<table> element in order to produce valid HTML. (#39763)
A new apply_shortcodes() function is now available as an alias to the do_shortcode() function. (#37422)
Some unused customizer classes are now formally deprecated in WordPress 5.4. (#42364)
We hope this guide helped you learn about what’s new in WordPress
5.4. We are excited about the new features and enhancements in the block
editor particularly color options and buttons block.
What’s your favorite feature in WordPress 5.4? Let us know in the comments below.
All three of them have a lot in common and many significant
differences. Each one of them is a unique website builder with pros and
cons.
In this article, we will compare WordPress vs Joomla vs Drupal to find out which one is the best choice for you. Note: We are comparing WordPress.org, and not the WordPress.com hosting service. Please see our guide on the difference between WordPress.org and WordPress.com.
What’s Common in WordPress, Joomla and Drupal
All three of the web’s most popular CMS have a lot in common in terms of technology, philosophy, and community.
WordPress, Joomla, and Drupal are all free and open source software licensed under GPL. See our article on why is WordPress free to learn more about free software.
They all support MySQL as
their database management system. WordPress exclusively supports only
MySQL, while Joomla and Drupal support other database management
systems.
All three of them use themes and templates for visual appearance of sites, and plugins, modules, or extensions for extending features.
As open source software, they are all community-driven projects.
While there are a lot of similarities, they are different in many aspects.
For instance, they have different policies about what to include in
the core software, how to handle modules and templates, how to deal with
security, etc.
These differences make a big impact on users, and how they build their websites.
Having that said, let’s take a look at how WordPress, Joomla and Drupal compare to each other, so you can choose the best website builder platform for your business.
Ease of Use and Beginner Friendliness
Most people creating their websites are not web developers,
designers, or programmers. They are average users who just want to build
a website. Ease of use is the most important factor for majority of
users. WordPress
WordPress comes with a famous five minute install. Most WordPress hostingproviders also offer one click install of WordPress. This makes it fairly easy for a new user start a WordPress blog or website in minutes, not hours.
The post-install user experience of WordPress is way better than
Joomla or Drupal. The user sees a simple clean-cut user interface with
the menus to create posts, pages, or start customizing appearance and
themes. Joomla
Joomla installation may not look as quick as WordPress, but it has very similar steps. Apart from that many shared hosting providers offer one-click install packages for Joomla as well.
After the installation, the user lands on a control panel that is not
as straight forward as WordPress. There are just too many menus to
click on and customize your site.
Joomla fans would say that’s because Joomla is a lot more powerful than WordPress, but we don’t believe that to be true. Drupal
Drupal’s installation is similar to both Joomla and WordPress. Simply
download and upload the package and run the installation script.
Drupal also offers distributions. These are pre-packaged Drupal
bundles with modules and configurations to create specific types of
websites.
The post-installation experience for absolute beginners is a bit
complicated. Users will find it difficult to figure out how to change
things on their site. Drupal makes it very obvious how to add the
content, but changing appearance and adding non-content elements is not
very obvious. Winner: WordPress
Themes and Addons
All three of these popular CMS come with themes and plugins / modules
as a way to extend the features and appearance of the software.
Themes control the appearance of your website and how it looks to your users. Plugins or Modules are like apps for your CMS.
Let’s see how these three major CMS software perform in this category. WordPress
WordPress allows users to change their site’s appearance using themes. WordPress comes with a few default themes pre-installed.
At any time, you can click on the add new button from your Appearance page and install free WordPress themes from the official WordPress.org theme directory.
Apart from free themes, you will find many more premium WordPress themes developed by third-party theme shops like StudioPress, Astra Theme, Elegant Themes, and more. These are paid themes and come with premium support options.
The real power of WordPress lies in plugins. There are more than
55,000 WordPress plugins available for free in the official WordPress
plugin directory. You can also buy premium plugins that come with paid
support provided by plugin developers. Check out our list of must-have WordPress plugins to see how plugins make WordPress awesome. Joomla
Just like WordPress, Joomla also comes with templates and extensions.
There are great extensions to do just about anything from creating an
eCommerce store to managing email.
However, the quantity of these templates and extensions is not as
high as WordPress. This could make finding the perfect template and the
perfect extensions a bit difficult.
By default, Joomla does not have a feature that would allow users to
search and install extensions or templates from the administration area.
There is an extension that allows you to add “install from web” feature
for extensions. But for templates, users will still have to manually
search templates and then install them by adding their URL. Drupal
Drupal has the same issue with the availability of themes and
modules. Users will have to leave their site, search for the module and
theme they want to add, then locate the project’s zip file URL. Finally,
they can enter the URL in the Modules or Themes page to install them.
There are modules to do just about anything and new ones are added
regularly. Still, the overall quantity of modules is lacking when
compared to WordPress. Winner: WordPress.
Support Options
The availability of help and support options is very important for
beginner users. There will surely be some hurdles when you are trying
new software. That’s ok as long as you can get help. WordPress
WordPress has a strong community of users. You can find WordPress help on official support forums, docs, handbooks, codex, Slack channels, Stack Exchange, WPBeginner Engage facebook group, and almost every forum on the internet about web design and development.
There are sites like WPBeginner, containing hundreds of tutorials, video tutorials, and articles catering to beginner level WordPress users. There are many ways to ask for free WordPress support and get it.
Apart from the free support options, there are ways to get paid support for WordPress as well.
Online platforms like Codeable,
UpWork, Fiverr, etc. are just some of the places where you can hire
WordPress professionals to help you. Due to the immense popularity of
WordPress, finding WordPress developers is easy and affordable for small
businesses and individuals.