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

Not working to set SMTP in fish shell #3

Closed
AlbinSjoegren opened this issue Oct 2, 2022 · 2 comments
Closed

Not working to set SMTP in fish shell #3

AlbinSjoegren opened this issue Oct 2, 2022 · 2 comments

Comments

@AlbinSjoegren
Copy link

AlbinSjoegren commented Oct 2, 2022

Hi,
Just wanted to try this out for some bulk emails and wanted to connect to gmail over smtp.
When I use SMTP_SERVER=smtp.gmail.com I get this error: fish: Unsupported use of '='. In fish, please use 'set SMTP_SERVER smtp.gmail.com'.
I then use that command, aka set SMTP_something something for server username and password but when I go to pigeon connect smtp I get this error

Error: Missing environment variable 'SMTP_SERVER'

Caused by:
    environment variable not found

My guess is that it is caused by me using fish for some reason.
And yes I did run set -a && source .env && set +a and yes the variables are set in the verbose output.

@AlbinSjoegren
Copy link
Author

Tested with bash now and that works so the problem is when using fish.

@quambene
Copy link
Owner

quambene commented Oct 2, 2022

Thanks for your bug report. Could you try the following commands?

  • set -x SMTP_SERVER smtp.gmail.com instead of SMTP_SERVER=smtp.gmail.com in the .env file, and
  • source .env instead of set -a && source .env && set +a

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

No branches or pull requests

2 participants