SMTP Send with "to" field as parameter
I want to be able to send an email, I'm using the SMTP action, perhaps I'm missing something here but it looks like I can't just use a parameter in the "to" field, such as "email" as string and then provide email parameter in the API. Parameters work fine for me in other Fusio action adapters but for some reason not with the SMTP. Am I missing something or is it really not possible? If not possible, any suggestions for an easy workaround?
Hi @moryoav yes this is true, at the To field it is not possible to provide input parameters from the request. Basically the SMTP-Send action has two modes, either you provide all data in the request (which could be unsafe) or you configure all parameters at the action, at the body you can then also access parameters from the request s.
https://docs.fusio-project.org/docs/backend/api/action/smtp-send
and if you want to see the source s. https://github.com/apioo/fusio-adapter-smtp/blob/master/src/Action/SmtpSend.php#L55