Oooook ! By re-reading your first email, I think I understood you meant that : the field that is used to collect the email must be different from the field used to trigger the confirmation email !
So I created a new field to collect the email (named "contact_email"), and configured my existing email field to be hidden, and to send the email to : To(field) => contact_email. This works indeed !
(This should be mentioned in the doc : https://www.seblod.com/resources/tutorials/triggering-emails)
With just a problem though : when testing the form with my email address, which is also the admin email address, the mail is not sent ! (but no error is generated neither). I understand it this way : the same email address appears twice in the 'to:' header of the email, and that makes Seblod or Joomla bug. When I test the form with another email address, everything works fine !
I think this could be improved in seblod. There are several choices to manage this :
- generate an error message to spot the problem (the same email appears several times in the 'To:' header)
- check for duplicates in email adresses, and only keep one in the 'To:' header ==> my favorite choice as it is more robust !
By the way, I imagine this problem will be the same for the 'cc:' and 'bcc:' fields.
Where should I submit the issue ?