Topic: AngularJS

Angular 6 Tutorial with Examples 0

Angular 6 Tutorial with Examples

Today, We want to share with you Angular 6 Tutorial with Examples.
In this post we will show you Angular 6 Tutorial Step By step, hear for Angular 6 – User Registration and Login Example & Tutorial we will give you demo and example for implement.
In this post, we will learn about Angular 6 Tutorial With Example using Angular CLI with an example.

Angular 6 Example

Angular Latest My Previous Post With Source code Read more…..

  1. Angular 6 Folder Project Structure
  2. Angular 6 CLI Installation
  3. Angular 6 Module File
  4. Angular 6 Components
  5. Angular 6 Services
  6. Angular 6 Routing
  7. Angular 6 CSS
  8. Angular 6 Class Binding
  9. Angular 6 Animation
  10. Angular 6 Templating
  11. Angular 6 HTTP Client

First of all Simple We know to Need Angular Basic Version Such as AngularJS , Angular 2, Angular 4 and Angular 6.

Angular 6 Features Architecture Overview

There are the Following the list of the Angular 6 Additions & New Features

  • Angular Material changelog
  • Full changelog
  • RxJS 6 at ngConf
  • RxJS 6 migration guide
  • add a ng add
  • add a ng update
  • add a ngConf

And the More Details of the Angular 6 Features Below link.

Angular 6 Additions & New Features

And then Angular 6 next step To Basic Learn To Angular 6 Folder Project Structure

Angular 6 Simple Project Structure

    src
    app
    _directives
    _guards
    _helpers
    _models
    _services
    home
    login
    register

And the More Details of the Angular 6 Features Below link.

Angular 6 Folder Project Structure

More Details of the Angular 6 Angular 6 Introduction Tutorial features of angular 6.0

Angular 6 Examples

There are the Angular 6 Step By Step Example and Learning AngularJS

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Angular 6 Overview With Examples.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Angular 6 Features Architecture Overview 0

Angular 6 Features Architecture Overview

Today, We want to share with you Angular 6 Features Architecture Overview.
In this post we will show you Angular 6 – Architecture overview, hear for Introduction to Angular 6 and Features of Angular 6 we will give you demo and example for implement.
In this post, we will learn about What is Angular 6? Architecture & Features with an example.

Angular 6 Example

Angular Latest My Previous Post With Source code Read more…..

  1. Angular 6 Folder Project Structure
  2. Angular 6 CLI Installation
  3. Angular 6 Module File
  4. Angular 6 Components
  5. Angular 6 Services
  6. Angular 6 Routing
  7. Angular 6 CSS
  8. Angular 6 Class Binding
  9. Angular 6 Animation
  10. Angular 6 Templating
  11. Angular 6 HTTP Client

Angular 6, was just latest version released, as well as while the some more amount of new benifits and features is lightweight minimal, a more lot has some changed under the main first version AngularJS hood in terms of tooling.

Angular 6 List of Additions & New Features

  • Full changelog
  • RxJS 6 migration guide
  • add a ng update
  • add a ngConf
  • add a ng add
  • Angular Material changelog
  • RxJS 6 at ngConf

Angular 6 Additions & New Features

here simple new include 2 types of the angular 6 directives ng update & ng add

Angular 6 Folder Project Structure

ng update & ng add in Angular 6

The Angular latest version CLI gets main two simple new commands Like as a: update and add.

$ ng add @angular/material

Other Angular 6 CLI changes

$ ng g library ng-fancy-lib

Angular 6 the main new import paths:

// Angular 6 creation and utility methods
import { Observable, Subject, pipe } from 'rxjs';
// operators Angular 6 all come from `rxjs/operators`
import { map, takeUntil, tap } from 'rxjs/operators';

AngularJS 6 Login and Registration Script – Part 2

More Details of the Angular 6 Angular 6 Introduction Tutorial features of angular 6.0

Angular 6 Examples

There are the Angular 6 Step By Step Example and Learning AngularJS

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Angular 6 Upgrading and New Features.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Angular 2 interview questions Answers 0

Angular 2 interview questions Answers

Today, We want to share with you Angular 2 interview questions Answers.
In this post we will show you Angular.js 2 interview questions and Answers PDF, hear for Top 10 Angular 2 Interview Questions and Answers we will give you demo and example for implement.In this post, we will learn about Angular 2, 4,5 and 6 interview questions with an example.

Below All AngularJS Interview Questions are the list of Top 10 Main Angular 2 interview questions And Answers.

Top 10 Advanced AngularJS Interview Questions Answers

Q1. What is Angular 2?

Simple Defination of the Angular 2 is a fully completely revived All the Data Bind component-based typescript framework in which web or spa’s an application is a more tree of pure js loosely coupled some data binds components.

Q2. List some advantages of Angular?

Angular 2 is a re-written version of Angular1 and not an update.

  • Angular 2 is a user-friendly mobile-oriented framework
  • Angular 2 is a simple JavaScript;s versatile framework,
  • Angular 2 code use Latest version Like ES5, ES6, Typescript

Q3. What are the new features of Angular 2?

  • A mobile toolkit
  • A command line interface
  • Data binding
  • Modular
  • Modern
  • Universal server rendering

Q4. How to declare a component in Angular 2?

Angular 2 Components in Pure AngularJS are simply some onpage directives that are often associated with a HTML view direct template.

Q5 : How to Declaration of component in Angular 2?

@component ({selector: 'great', template: 'paka {{name}}!'})

Class greet{

Name: string = 'pakainfo';

}

Q5. List the modern browsers supported by Angular 2.

  • Android 4.1
  • Edge
  • Firefox
  • Google Chrome
  • IE Mobile
  • IE for versions 9-11
  • Safari
  • iOS 7.1

Q6.component life cycle in Angular 2?

There are a Angular 2 total number of life cycle some hooks which are all the List below: –

  • ngOnChanges
  • ngOnInit
  • ngDoCheck
  • ngAfterContentInit
  • ngAfterContentChecked
  • ngAfterViewInit
  • ngAfterViewChecked
  • ngOnDestroy

Q7.key components of Angular 2?

Angular 2 comprises of the below key components:

  • Component
  • Metadata
  • Module
  • Service
  • Templates

Q8 : What is a template in Angular 2?

The HTML view template in Angular 2 is used to define the views of the AngularJS spa’s Application.

Q8.How convert a string into a percentage in angular 2?

Angular 2 To convert any string into a type of the percentage format, as well as a percent data bind filter is used.

Q9. Explain component specific hooks?

  • ngafterContentinit
  • ngAfterviewChecked
  • ngAfterConctentChecked
  • ngafterViewinit

Q10. What is CLI?

CLI stands for the acronym of Command Line Interface

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about 10 Best Angular 2 Interview Questions and Answers.I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Jquery Angular conflict Solution Example 0

Jquery Angular conflict Solution Example

Today, We want to share with you Jquery Angular conflict Solution Example.
In this post we will show you Jquery and AngularJs conflict Solution example, hear for jQuery plugin with Angular 2 component we will give you demo and example for implement.
In this post, we will learn about angularjs – Conflict in angular js with jquery with an example.

The noConflict() function or method used to /releases the hold on the simple $ (sign or special) shortcut identifier defined, so that used to other scripts we can use it simply.

and jquery or angularjs $ sign is a shortcut identifier in jQuery.

You alredy know jQuery uses the $ sign
as a shortcut method for jQuery defined.

There are Many poplar javascript frameworks also use the Like(Angularjs, vuejs, Node.js, Knockout,etc…)

***What is the “$” sign in Jquery ?***
Answer :
The special char – “$” sign is an alias for jquery.

Example 1: jQuery noConflict Example

//The Global source code

<img src="data:image/gif;" data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="<script>" title="<script>" />

//script code
j(document).off("click",".datajtest",datatestclick ).on("click", ".datajtest",datatestclick);

Note : a jQuery only view the current HTML DOM when loaded first, so with it is being injected using the above this solution worked.

Example 2: Conflict in multiple jQuery files on same page

<img src="data:image/gif;" data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="<script>" title="<script>" />

Example 3 : simple code jQuery and AngularJS not working together

<img src="data:image/gif" data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="<script>" title="<script>" />

Example 4 : jQuery.noConflict() source code

// Javascript file code
<img src="data:image/gif;" data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="<script>" title="<script>" />

Example 5 :

<head>
<title>JQuery No Conflict : Example with Source code</title>
<img src="data:image/gif;base64" data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="<script>" title="<script>" />
<img src="data:image/gif;" data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="<script>" title="<script>" />
<img src="data:image/gif;base64," data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="<script>" title="<script>" />
</head>
<body>
</body>
</html>

Refrence :

http://api.jquery.com/jQuery.noConflict/

Access Control Allow Origin http set Headers 0

Access Control Allow Origin http set Headers

Access Control Allow Origin http set Headers

Simple Include headers Uing CORS solution (Cross-origin resource sharing)

Welcome to the In Pakainfo.com website! You will Step By Step learn web programming, easy and very fun. This website allmost provides you with a complete web programming tutorial presented in an easy-to-follow manner. Each web programming tutorial has all the practical examples with web programming script and screenshots available.For Access Control Allow Origin http set Headers

Access-Control-Allow-Origin – Name of the each domain allowed access control all for cross domain requests. * (* means all domain allowed)indicates all domains are allowed.
Access-Control-Allow-Methods – List of (GET, PUT, POST, DELETE, OPTIONS)HTTP methods can be used here domains during request.
Access-Control-Allow-Headers – List of (GET, PUT, POST, DELETE, OPTIONS)HTTP headers can be used here domains during request.

In PHP : “no ‘access-control-allow-origin’ header is present on the requested resource web api”

The Soltution of the no ‘access-control-allow-origin’ header is present on the requested resource web api in PHP.

// here include this three statement
header('Access-Control-Allow-Origin: *');  //all the methods access code
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS'); // all the resource and request get
header('Access-Control-Allow-Headers: Content-Type, Content-Range, Content-Disposition, Content-Description');

simple Below the sample code which handles Cross Domain AJAX POST requests: post.php

CORS works fine in all the latest browsers, but IE8 and IE9 don’t support this.

In order to use XDomainRequest in IE, request must be:
a). Only GET or POST
When Posting, the data will always be sent with a Content-Type of text/plain
b). Only HTTP or HTTPS
Protocol must be the same scheme as the calling page
c). Always asynchronous

Step 1). Add the script in

<script type='text/javascript' src="http://cdnjs.cloudflare.com/ajax/libs/jquery-ajaxtransport-xdomainrequest/1.0.1/jquery.xdomainrequest.min.js"></script>

Step 2). You need to set contentType value text/plain in $.ajax request.

 var contentType ="application/x-www-form-urlencoded; charset=utf-8";
 
if(window.XDomainRequest) //for IE8,IE9
    contentType = "text/plain";
 
$.ajax({
     url:"https://pakainfo.com/php/post.php",
     data:"name=king&age=28",
     type:"POST",
     dataType:"json",   
     contentType:contentType,    
     success:function(result)
     {
        alert("here Display all the Data from Server"+JSON.stringify(result));
     },
     error:function(jqXHR,textStatus,errorThrown)
     {
        alert("Error display :You can not any data send Cross Domain AJAX simple requests: "+errorThrown);
     }
    });
	

Below is the sample code, works in all the browsers.

<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="jquery.min.js"></script>
<script type='text/javascript' src="http://cdnjs.cloudflare.com/ajax/libs/jquery-ajaxtransport-xdomainrequest/1.0.1/jquery.xdomainrequest.min.js"></script>

</head>
<body>
 
<input id="get_methoddata" type="button"  value="Data Send X  -> Method GET"/>
<input id="post_methoddata" type="button" value="Data Send X -> Method POST" />
 
<script>
$(document).ready(function()
{
    var data_contentType ="application/x-www-form-urlencoded; charset=utf-8";
 
    if(window.XDomainRequest)
        data_contentType = "text/plain";
 
    $("#post_methoddata").click(function()
    {
        $.ajax({
         url:"https://pakainfo.com/php/post.php",
         data:"name=johan&age=28",
         type:"POST",
         dataType:"json",   
         contentType:data_contentType,    
         success:function(result)
         {
            alert("here Display all the Data from Server"+JSON.stringify(result));
         },
         error:function(jqXHR,textStatus,errorThrown)
         {
            alert("Error display :You can not any data send Cross Domain AJAX simple requests: "+errorThrown);
         }
        });
 
    });
 
    $("#get_methoddata").click(function()
    {
        $.ajax(
        {
         url:"https://pakainfo.com/php/get.php?name=johan&age=48",
         dataType:"json",
         contentType:contentType,
         success:function(result)
         {
            alert("all the Data from here display Server"+JSON.stringify(result));
         },
         error:function(jqXHR,textStatus,errorThrown)
         {
             alert("Error display :You can not any data send Cross Domain AJAX simple requests: "+errorThrown);
         }
        });
 
    });
 
});
</script>
</body>
</html>

post.php source code:

<?php
// here include this two statement
header('Access-Control-Allow-Origin: *'); 
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');
 
 //check condition headers set or not
if(isset($HTTP_RAW_POST_DATA)) {
  parse_str($HTTP_RAW_POST_DATA,$arr); 
  $arr['data_extra']='task 1.your request POST Request from Pakainfo.com';
  echo json_encode($arr);
}
else
{
    $_POST['data_extra']='task 2.your request POST Request from Pakainfo.com';
    echo json_encode($_POST);
}
?>

Example

header set access-control-allow-origin multiple domains | cross domain ajax request,cross domain ajax request jquery | no access control allow origin header is present jquery ajax origin

Get Responsive navbar menu to Automatically close after anchor link clicked 0

Get Responsive navbar menu to Automatically close after anchor link clicked

Get Responsive navbar menu to Automatically close after anchor link clicked

In this Post We Will Explain About is Bootstrap Mobile navbar toggle collapse after click, With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to How to hide my collapse bootstrap 3 navbar ExampleExample

In this post we will show you Best way to implement javascript – Bootstrap close responsive menu “on click”, hear for Responsive navbar collapse for single page applicationswith Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Markup Languages(index.html) HTML Part

<nav class="navbar">
    <div class="container">
     <div class="navbar-header">
      <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle pull-right collapsed" type="button">
       <span class="icon-bar"></span>
       <span class="icon-bar"></span>
       <span class="icon-bar"></span>
      </button>
      <div class="logo pull-left">
       <a href="index.html" class="navbar-brand main_logo">
        <img class="img-responsive" src="images/logo-main.png" alt="logo-main" />
       </a>
       <a href="index.html" class="navbar-brand min-logo">
        <img class="img-responsive" src="images/logo-mini.png" alt="logo-mini" />
       </a>
      </div>
     </div>
     <div class="navbar-collapse collapse" id="navbar">
      <ul class="nav navbar-nav navbar-right">
       <li>
        <a href="#service">Information</a>
       </li>
       <li>
        <a href="#blog">Invest</a>
       </li>
       <li>
        <a href="#contact">Contact Us</a>
       </li>
       <li>
        <a href="javascript:;" onclick="document.getElementById('level00s').style.display='block'">Login / Register</a>
       </li>
      </ul>
     </div>
    </div>
   </nav>

Example 1 : javascript – How to close an open collapsed navbar when clicking

jQuery('.nav a').on('click', function(){
 jQuery('.navbar-collapse').removeClass("in");     
});

Example 2 : jquery – Hide Twitter Bootstrap nav collapse on click

$('.nav a').on('click', function(){
    $('.btn-navbar').click(); //bootstrap 2.x
    $('.navbar-toggle').click() //bootstrap 3.x by Richard
});

Example 3 : Responsive navbar collapse for single page applications

$(function() {
    $('.nav a').on('click', function(){ 
        if($('.navbar-toggle').css('display') !='none'){
            $(".navbar-toggle").trigger( "click" );
        }
    });
});

Example

I hope you have Got What is Responsive navbar collapse for single page applications And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.

Apache Virtual Host Tutorials – Setup Apache Virtual Hosts with Ubuntu 0

Apache Virtual Host Tutorials - Setup Apache Virtual Hosts with Ubuntu

Apache Virtual Host Tutorials – Setup Apache Virtual Hosts with Ubuntu

In this Post We Will Explain About is Apache Virtual Host Tutorials – Setup Apache Virtual Hosts with Ubuntu With Example and Demo.

Welcome on Pakainfo.com – Examples ,The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to How to Set Up Apache Virtual Hosts on Ubuntu 14.04

In this post we will show you Best way to implement Set up Apache virtual hosts on Ubuntu, hear for How to How to Setup Apache Virtual Hosts on Ubuntu 16.04 with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Apache Virtual Host Setup

This Post is very big answer to the question: like as a How to setup simple domain on Means host like as Virtual Private Server(VPS) using ubuntu?, here you learn to simple setting ubuntu onther host meaning we may setup menas one or more multiple domains get data with single IP some address using Apache server Virtual Host.
Note: I’m used to consider simple we have my VPS server or local computer System is ready with simple Ubuntu to use these Post.
Now Get started.
Before start we simple need to have Apache installed on largest my Ubuntu Server, as well as if we have’t any installed Apache server, please got install by using following below command:

Install Apache:

sudo apt-get install apache2

step 1. Create Directory

After getting Apache host installed, we need to simple setup a Folders for my project/website, these is the Folders where we are simpe used to store our website more data or we called it as some Production source Code, therefore go ahead and use simple following below command to create new a Folders.

sudo mkdir -p /var/www/Pakainfo.com/public_html

You may replace ‘Pakainfo.com’ to my real domain name, please take a simple note like as domain my used to use the simple domain needs to have simple DNS forwarded data to my server IP ew address. if as well as we don’t have new created domain and my testing some these Post on local computer System no worries as well as we will get more data info on these values as well in the next last steps.

step 2. Directory Permissions

sudo chown -R $USER:$USER /var/www/Pakainfo.com/public_html

sudo chmod -R 755 /var/www

Now we are ready simple to setup apache server virtual host.

step 3. Virtual host file:

Apache server provides default virtual file simple called 000-default.conf file as well as which is located at /etc/apache2/sites-available/ therefore the easy way to simple create new virtual host file is just second copy these default data file with my simple change domain name or whatever and then we want but it’s new better way to keep your domain name to identify files.

Use following below lines to create duplicate/copy file of 000-default.conf

sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/Pakainfo.com.conf

We have our file ready to configure, Now, do that in next step:

step 4. Configure Virtual host:

Edit and then the file we just simple created:

sudo nano /etc/apache2/sites-available/Pakainfo.com.conf

Change #ServerName www.example.com to ServerName Pakainfo.com
If we create need my site simple to be accessible with simple www add below as well as lines after ServerName

ServerName Pakainfo.com
ServerAlias www.Pakainfo.com

Assign our simple website root Folders which we had new setup in first simple two steps

DocumentRoot /var/www/Pakainfo.com/public_html

Finally Pakainfo.com.conf file needs to look like these:

ServerAdmin [email protected]
ServerName Pakainfo.com
ServerAlias www.Pakainfo.com
DocumentRoot /var/www/Pakainfo.com/public_html

We are done with the configuration, Now, enable our virtual host:

sudo a2ensite Pakainfo.com

As we have made some new changes in the data configuration of apache server we need to restartsimple steps to our apache to complete the simple configuration.

sudo service apache2 restart

We are done, just needs to add Live24u test page in the root Folders so that we may see message/page as well as we may easily upload my simple website backup if we new have already in place.

and then create simple index page to show message.

sudo nano /var/www/Pakainfo.com/public_html/index.html

Add following below content it the file

<html>
  <head>
    <title>Pakainfo.com Domain</title>
  </head>
  <body>
    <h1>Great, Pakainfo.com is successfully setup on VPS!!</h1>
  </body>
</html>

If we are using these Post to setup virtual domain on my local computer System, use following below additional step to access my domain, we just simple simply needs to add create records under host file.

nano /etc/hosts

127.0.0.1       localhost
#virtual host
12.34.56.789    Pakainfo.com

We are all done we may Live24u test these setting on local computer System by using Pakainfo.com.

Example

I hope you have Got How To Configure Apache Virtual Hosts In Ubuntu And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.

Send email using nodejs and express in Nodemailer steps 0

Send email using nodejs and express in Nodemailer steps

Send email using nodejs and express in Nodemailer steps

In this Post We Will Explain About is Send email using nodejs and express in Nodemailer steps With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to How to Send Emails Through SMS using JavaScript and Node.js Example

In this post we will show you Best way to implement How to Send E-mail in Node.js and Express JS, hear for Send email using nodejs and express in 5 simple stepswith Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Now, Live24u share with We how to simple email send mail in nodejs. in current position nodejs is simple more and lots of the more use. many things we have simple done with nodejs latest without write source code.

In this POST we are simple share with We email simple email sending in nodejs. so in any web-application we should be required a mail simple email sending more functionality.

We are source code here very simple code for mail simple email sending in nodejs.as well as We can mail simple largets email send in and nodejs using nodemailer

Step : 1 Install nodemailer

We are first need to step by step install nodemailer package for mail simple email sending in nodejs. as well as run followign simple command for install it.

npm install [email protected]

Step : 2 Create mail.js file

No here create mail.js file in we are project root folder directory and simple put following code into it.

var nodemailer = require('nodemailer');

// here Create a simple SMTP mail transport object
var transport = nodemailer.createTransport("SMTP", {
        service: 'Gmail',
        auth: {
            user: "[email protected]",
            pass: "Live24u"
        }
    });

console.log('Cool here SMTP Configured Good luck!!');

//simple Message object data
var message = {

    //live24u simple How to simple email send mail in nodejs  email sender info
    from: 'Sender Name <[email protected]>s',

    //live24u Comma separated all the list of recipients
    to: '"Receiver Name" <[email protected]>s',

    //live24u Subject of the message
    subject: 'my first send mail using nodejs', 

    //live24u plaintext body
    text: 'Hello, Pakainfo.com!',

    // HTML body
    html:'<p>s<b>sLook this</b>s  <img src=""/>s</p>s'+
         '<p>sHere i am simple email send my picture attachment:<br/>s</p>s'
};

console.log('Sending Mail How to simple email send mail in nodejs ');
transport.simple email sendMail(message, function(error){
  if(error){
      console.log('How to simple email send mail in nodejs  Error occured');
      console.log(error.message);
      return;
  }
  console.log('How to simple email send mail in nodejs  - Message sent successfully!');

  // if We don't want How to simple email send mail in nodejs  to use this transport object anymore, uncomment following line
  //transport.close(); // How to simple email send mail in nodejs  close the connection pool
});

How to simple email send mail in nodejs

node mail.js

Example

I hope you have Got What is How to simple email send mail in nodejs And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.