Possibly, or at least it's worked for me...
My [home] ISP allows me to send mail with the only validation being my sending IP address (that I send the email from my home & not elsewhere).
I can
telnet smtp.myisp.net 25
into their mail server & enter commands needed to send email (as if I was a MUA) then exit, which of course allowed me to script it & use it for myself (alert me to jobs, events etc).
I've even had scripts send externally (not to my isp's email address), but I've also had these rejected (I didn't explore; it was sent externally because of a typo, not intentionally).
--
My use of telnet
was NOT intended to be the end result; it was only to prove that it's possible. My script calls functions & does not shell out to telnet. Telnet was just to prove the idea worked before I wasted time scripting it, but YES this is a dirty hack.
telnet smtp.myisp.net 25
into their mail server & enter details for email then exit, which of course allowed me to script it & use it for myself. I've even had scripts send externally (not to isp email), but I've also had these rejected (I didn't explore; it was sent externally because of a typo). – guiverc Jan 18 '19 at 03:10