mimepostcard /path/to/some/graphic.jpg firstname.lastname@example.org
You can point it at a .gif file as well. The special address “-” just causes the message to go to STDOUT.
This sends a mesasge both as HTML and plain text. I use “Data”; you would probably use “Path”.
2021-01-27 perl v5.32.1 User Contributed Perl Documentation