We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When using pop within a script which runs via cron, the error message occures:
Error: could not open a new TTY: open /dev/tty: no such device or address
To Reproduce Steps to reproduce the behavior:
vi /home/user/run.sh
#/bin/bash pop --to ybc@xyz.com -s "Hello" -b "Hello" >> /home/user/email.log 2>> /home/user/email.err
crontab -e
* * * * * /home/user/run.sh
Expected behavior pop runs without a tty
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
@korpa I think you're missing the --from flag, otherwise, Pop will want to open a tui to get that info
--from
Sorry, something went wrong.
I think, this is not necessary as I'm using SMTP for sending and have set following env variables:
POP_SMTP_HOST POP_SMTP_PORT POP_SMTP_USERNAME POP_SMTP_PASSWORD
In this case POP uses POP_SMTP_USERNAME as From: address.
POP_SMTP_USERNAME
From:
If I run the same script manually from bash, it works.
I just added the --from flag to double check if it really is the issue. Sadly nothing changes. I still get the "TTY error".
No branches or pull requests
Describe the bug
When using pop within a script which runs via cron, the error message occures:
Error: could not open a new TTY: open /dev/tty: no such device or address
To Reproduce
Steps to reproduce the behavior:
vi /home/user/run.sh
crontab -e
Expected behavior
pop runs without a tty
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: