I'm making a Purchase Order system. All of our POs go out to our vendors via gmail SMTP server in PHP. I'm using Perl Mail for that.
Currently the reply-to is set to the from email, which is of course the gmail address. My goal, is to let vendors Reply To that PO email, and me grab that data and put it into my database.
I tried grabbing the IMAP Inbox via PHP and looking for the messages. But encrypted messages are unreadable, and I feel like it's hacky.
Is there a way, to make the reply-to email go back to my server, instead of gmail. And then have some light mail server running on my server to catch all email, or email with something in the from address (or subject) and then process the contents?