# How do I send an email from a custom controller endpoint?

**URL:** <https://forum.radsystems.io/t/how-do-i-send-an-email-from-a-custom-controller-endpoint/1997>\
**Category:** PHPRad Vue\
**Created:** [February 15, 2024, 6:50am UTC](https://forum.radsystems.io/t/how-do-i-send-an-email-from-a-custom-controller-endpoint/1997 "2024-02-15T06:50:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hendryres](https://forum.radsystems.io/user_avatar/forum.radsystems.io/hendryres/32/1109_2.png) [@hendryres](https://forum.radsystems.io/u/hendryres)\
**Post date:** [February 15, 2024, 6:50am UTC](https://forum.radsystems.io/t/how-do-i-send-an-email-from-a-custom-controller-endpoint/1997/1 "2024-02-15T06:50:27Z")

</div>

How do I send an email from a custom controller endpoint?

 ![image](https://forum.radsystems.io/uploads/default/original/2X/c/ca5810343a80cc5394994fcb4c13dd3d28428d38.png)

With the command go to [http://localhost:8050/components\_data/sendtopicarea/1721](http://localhost:8050/components_data/sendtopicarea/1721)

1721 is the value that will be received in the controller.

When run from the href the url always points to [http://localhost:8050/error/forbidden](http://localhost:8050/error/forbidden)

Please help…
