So… I made my first contrib module, and it’s now running on my production server.
When the vet has been here, he can create a medical log for the visit.
My module will send an email to the vet, with a summary of the medical log.
This will happen only if the veterinarian field matches the corresponding passive user in farmOS. (The email address is fetched from that user)
My module is a fork of @Farmer-Ed’s farm_withdrawal module.
I removed the calendar stuff completely, and added mail support.
Didn’t have a clue about php, but learned with ChatGPT along the process.
I currently use PHPMailer SMTP module for mail. Not sure if that is the most common way, but it wors for now.
Next up is to make a quickform with @paul121’s template module.