Home > Blockchain >  Send Email in Angular Typescript
Send Email in Angular Typescript

Time:02-21

I am trying send a email with html body on click of button I am using Angular 10.0.8 is there any possible way to send email using SMTP Relay in typescript without using nodejs

CodePudding user response:

You can use something like email.js or smtp.js

Whth smtp.js you can

Email.send({
    SecureToken : "C973D7AD-F097-4B95-91F4-40ABC5567812",
    To : '[email protected]',
    From : "[email protected]",
    Subject : "This is the subject",
    Body : "And this is the body"
}).then(
  message => alert(message)
);

The security key is generated on the website and is different for your credentials

but this only supports Elasticmail securely at this time smtpjs.com for documentation

and email.js is a paid service

  • Related