-5

I want to send an email activation code for users who sign up on the website. If possible, I would like to use an Angular service so I can use it later in other projects.

Aiyoub
  • 5,023
  • 7
  • 24
  • 35

2 Answers2

4

... I think you CAN NOT send an email only with Angular4 .. .but you need also a Back End implementation .. like node.js or Asp.NET or what you prefer...

example :

http://tphangout.com/angular-2-sending-mails-from-your-app/
federico scamuzzi
  • 3,518
  • 1
  • 15
  • 23
1

I suppose you need to send from client side(not using a server side like node.js, web api, wcf etc..). You can not send directly but using external javascript libraries, apis you might able to send. Take a look here, there are pretty much discussions about sending email with javascript.

How to send an email from JavaScript

sa_
  • 2,504
  • 3
  • 21
  • 29