Re:Ask HN: Create an app that sends an email with some text
by porlw on Monday September 23, 2024 @03:13AM
(#41623214)
This can easily be done with a small shell script and standard linux commands.
Schedule with cron.
[ Parent
| on HN ]
Re:Ask HN: Create an app that sends an email with some text
by nh2 on Monday September 23, 2024 @05:10AM
(#41623988)
This is unsafe (glob injection).
Never use bash unless you know exactly what you are doing, and even then, better don't.
Even worse to recommend bash to somebody who already stated that they don't know what they are doing.
Just use Python for such scripts, it won't let you shoot yourself into the foot with surprising behavior.