0

I am trying to send an email with an attachment using ssmtp and base64 (both preinstalled and trying to avoid install new packages).

I dont want to install mutt or any other package. I want to do it with base64 and ssmtp only.

I can run this in synology's task scheduler (linux terminal) without problems: /usr/bin/ssmtp user@gmail.com < /volume1/homes/user/eltrack/requirements.txt

but i want to email an attachment (an image) and i am failing to encode it properly.

It would be great if I could just do: (cat base64 /volume1/homes/user/eltrack/requirements.txt)

but all my attempts have failed. Any hints on how to solve this?

ruthpozuelo
  • 175
  • 1
  • 10

0 Answers0