This is for a tool I have that receives a lot commercial emails and it would only apply to that. It is not for emails that I receive from individuals with yahoo.com, gmail.com, or business accounts.
I'm familiar with retrieving and parsing email headers using imap_headerinfo. I found that imap_header retrieves the entire header as a string and that full header typically includes two IP addresses.
Should I just parse out these IP addresses? Do you know if they accurately represent the IP address of the server sending the email?
Thank you!