Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP Send with "to" field as parameter #597

Open
moryoav opened this issue Dec 12, 2024 · 1 comment
Open

SMTP Send with "to" field as parameter #597

moryoav opened this issue Dec 12, 2024 · 1 comment
Labels

Comments

@moryoav
Copy link

moryoav commented Dec 12, 2024

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?

@chriskapp
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants