Geekish Garrulous Grumblings blogs › IBM i Emails with IFS attachments from RPG and CL using SNDSMTPEMM
Life as a Freelance IBM i Software Developer is fun. Life as an AS400 software maintenance programmer can be a bit a grim. I seem to spend the bulk of my time maintaining older applications - archaic code monstrosities that started life in the AS400 generation. "The AS400 generation?" You remember these days in the early 90's when email was a new an exciting thing, Yahoo was the search engine of choice and the phrase 'social networking' hadn't been dreamed up. So, when I find that a new exciting snippet of IBM i Software has slipped passed my radar it gets me all twitchy.
Guess what I found out today?
SNDSMTPEMM is a native IBM i command that will send emails with IFS attachments!
By native I mean, it comes quietly packaged with the operating system. I can now send emails from within RPGLE programs or from the command line by simply entering the command. I can attach any kind of files from the IFS (PDF, TXT, HTML, XML, yadda yadda) and I can even format the body of the emails using HTML to make it look all pretty.
Read the original at Geekish Garrulous Grumblings blogs.