Ask HN: Create an app that sends an email with some text
Hi, I want to create an app that runs on a batch job. Say at 4am every morning, this app should start. It should take a snippet from a database/data store and email it to a set of people in a list/DB.
I am a technical non-programming PM. So I understand technology but its been many years since I actually coded something.
I dont want to integrate with Twilio or something for an enterprise grade feature. This is just to create a quick POC to evaluate product/market fit.
Like I said above, its been a while, and I would like to do this myself. Any guidance on where I could start? Is the O-1 model good enough now where it can create this entire app for me, and deploy it? :)
Looking for tips that are not, simply said, too hard.
18 comments
[ 3.9 ms ] story [ 57.8 ms ] thread2) learn some PHP + MySQL
3) Use PHP's built-in 'mail()' function to send an e-mail
4) Set up a cron job that runs the PHP file at 4AM
You'll probably have to use a reputable provider's API (eg. GMail, Twilio etc.) because otherwise the recipients' provider are likely to flag you as spam and people never see your email.
or val.town which has an AI assitant so you can use it even if you don't code
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.
Benefit of this route is lots of youtube tutorials explaining this and written documentation.
Hope this helps.
If it's just a big ol' CSV or something similar, you might be able to just use a nocode/lowcode tool like Airtable or Make.com to automate it in a few minutes.
If it's something particular SQL database that you need to write a query to extract data from, it gets a bit harder because you need to connect that layer to the automation layer and then connect that to a transactional email service with good deliverability.
If you can give a clearer picture of details, like what kind of data format it's in, how many people you need to send it to, how often will the underlying data change, etc., it would help narrow down the options. There are approx. infinite ways to build this, but it can be very simple or more complicated depending on the details.