Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jason Writer 2 posts 72 karma points
    Oct 26, 2023 @ 17:46
    Jason Writer
    0

    Contact form "to" email address

    I'm using the clean starter kit with umbraco 10 and was wondering where you set the email address for where the form is sent. It seems to default to sending to the from email address set in appsettings. Thanks in advance!

  • Paul Seal 524 posts 2890 karma points MVP 8x c-trib
    Oct 27, 2023 @ 09:20
    Paul Seal
    100

    Hi Jason

    Yes it uses the from address that is in the app settings smtp section.

    https://github.com/prjseal/Clean-Starter-Kit-for-Umbraco-v9/blob/1ec837e53919004b6cd1ddc53ce0f863d993514e/Clean.Core/Controllers/Surface/ContactSurfaceController.cs#L62

    If you want you can copy the above surface controller into your project with a different class name, and point your form at that. Then you can get it to set the from and to address how you need it to.

    Kind regards

    Paul

  • Jason Writer 2 posts 72 karma points
    Oct 27, 2023 @ 18:06
    Jason Writer
    0

    Thank you so much Paul!

  • Yaco Zaragoza 88 posts 363 karma points
    Oct 30, 2023 @ 14:36
    Yaco Zaragoza
    0

    Thank you for the github link

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies