This is a simple thing. you can specify any email address as the 'from' address in SMTP protocol; even your own email.
But your mail provider must be able to detect this and normally they redirect the mail into 'spam' box and that's why large mail providers like google/outlook use SMPTS rather than SMTP. But if you're on a old mail server, no luck.