title: How to send email using Angular 7
body: <p>How do I create an email service in Angular 7 that contains a method for sending out emails?</p>
  <p>For example:</p>
  <pre><code>// email.service.ts
  import { Injectable } from ‘@angular/core’;
  
  @Injectable()
  
  export class EmailService {
  
      constructor() { }
  
      // method to fetch data from server
      public sendEmail(): void {
         // logic to send email
        ...
      }
  }
  </code></pre>
  <p>I'm new to developing with Angular so any examples, use cases, and/or code snippets are greatly appreciated.</p>