I’m building a mailing script, and I would like to know if it’s possible to change the header that says from where it comes (for example, mail.google.com). I know we can do a lot of things with the headers and PHP, so I was wondering if this was beyond limits …
If PHP can’t is it possible by setting up my own SMTP server?
It depends on your host’s mail system - some will allow ghosting the From: header, some wont.
Even with those that do, the email headers added by the mail daemon (to comply with MX requirements) will show which server sent the email, so it’s not a perfect impersonation.