title: I am not able to send email using emailjs in angular
body: <p>I am using emailjs to send auto generated emails in angular. I am getting the same error which is mentioned in the below link:
  <a href="https://stackoverflow.com/q/54059643/11724094">unable to send emails using emailjs with Angular 4</a></p>
  
  <p>If anyone has any solution for this then it will be very helpful.</p>
  
  <pre><code>import * as email from 'emailjs';
  var server = email.server.connect({
    user: 'xyz@gmail.com',
    password: 'xyz',
    host: 'smtp.gmail.com',
    ssl: true
  });
  
  server.send({
    text: 'some text',
    from: 'xyz',
    to: 'abc &lt;abc@gmail.com&gt;',
    cc: '',
    subject: 'Greetings'
  }, function (err, message) {
    console.log(err || message);
  });
  </code></pre>