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

[feat] Sample Documentation update for encrypt API #320

Open
2 tasks done
ianssoftcom opened this issue Feb 3, 2025 · 1 comment
Open
2 tasks done

[feat] Sample Documentation update for encrypt API #320

ianssoftcom opened this issue Feb 3, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@ianssoftcom
Copy link

Describe the feature

In the https://forwardemail.net/en/email-api#encrypt sample, it suggests

curl -X POST https://api.forwardemail.net/v1/encrypt \
  -d "[email protected]"

But when using regex matching for $1, it tries to use a shell variable expansion instead of as a literal $1. I would suggest using 'single quotes' instead - otherwise after a few minutes it bounces with an 'invalid "forward-email" TXT record due to an invalid regular expression email address match>'.

curl -X POST https://api.forwardemail.net/v1/encrypt -d 'input=/^(alias1|alias2)$/:[email protected]'

Checklist

  • I have searched through GitHub issues for similar issues.
  • I have completely read through the README and documentation.
@ianssoftcom ianssoftcom added the enhancement New feature or request label Feb 3, 2025
@ianssoftcom
Copy link
Author

Trying to emulate a DL is still failing if I use a 2nd +$1 it bounces, maybe I'm doing it wrong?

curl -X POST https://api.forwardemail.net/v1/encrypt -d 'input=/^(alias1|alias2)$/:[email protected],/^(alias1|alias2)$/:[email protected]'

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

No branches or pull requests

1 participant