This seems to be the default position of almost everyone in IT, everywhere I go. People make this claim without doing any calculations.
I can imagine building this in house would be at least a few weeks of developer work and some more devops. That's tens of thousands of dollars. You'd have to send a million emails to break even. How many of this kind of transactional email do you send per year?