Contact form email addresses

Hello Kirby People! I recently found an issue in a contact form…The from (sender) and to are the same, which is rejected by many mail systems. I was thinking hard coding a unique sender address in my contact.php (controller), unless there is a more “Kirby” way to do this -

 $form = uniform('contactform', array(
      'required' => array(
        'name' => '',
        'email' => 'email',
        'text' => ''
      'actions'  => array(
          '_action' => 'email',
          'to'      => $page->email(),
          'sender'  => $page->email(),

You could set the sender dynamically to the email address entered by the user (if your hosting supports that).

You could also set different email addresses via the config or in your site settings.

Hey, thx for the reply, tex