Is there any way I can send email with Angular 4 without involving backend?
I have tried formspree but that did not help.
<form method="POST"
action="https://formspree.io/usmansaleem.logicon@gmail.com">
<input type="email" name="email" placeholder="Your email">
<textarea name="message" placeholder="Test Message"></textarea>
<button type="submit">Send Test</button>
</form>
Or Am I implementing it the wrong way?
Any help would be great. Thanks.
Angular makes every form
element a NgForm
implicitly that manipulates behavior of the form.
You need to set NgNoForm
attribute to the form.
<form method="POST" ngNoForm
action="https://formspree.io/usmansaleem.logicon@gmail.com">
<input type="email" name="email" placeholder="Your email">
<textarea name="message" placeholder="Test Message"></textarea>
<button type="submit">Send Test</button>
</form>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.