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.
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.
Pick a language.
Pick an email as a service.
Read the docs.
Extend an example for your needs
Set-up your cron job
Profit
use Net::SMTP;
Net::SMTP.new('smtp.gmail.com', port => 587, ssl => True)
.login('your-email@gmail.com', 'your-password')
.send(
:from('your-email@gmail.com'),
:to('recipient@example.com'),
:subject('Daily Snippet'),
:body('A random snippet'))
.quit;
Then, crontab -e
0 4 * * * /path/to/raku /path/to/send-email.raku
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.
#!/usr/bin/bash
MAILTEXT=$(grep "dbkey" db.txt)
cat emails.lst|while read ADDR NAME
do
mail -s "Subject" $ADDR <
Schedule with cron.
or val.town which has an AI assitant so you can use it even if you don't code
2) 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